dotfiles/.local/bin/scripts/diff-color

6 lines
319 B
Plaintext
Raw Normal View History

#!/bin/sh
# Colorize with diffr
2022-06-27 11:03:46 +00:00
# TODO light mode
diff --color=always --minimal --unified=2 "$@" |
diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33