Re:Colorize Your CLI
by ipozgaj on Sunday July 26, 2020 @02:41PM
(#23959136)
There is also `colordiff` which works both as a standalone diff tool, but also as a colorizer filter for other diff tools. For example:
[ Parent
| on HN ]
Git ships with `diff-highlight` which is more than enough for me.
I use the following config.
[core]
pager = /usr/share/git-core/contrib/diff-highlight | less
[color "diff-highlight"]
oldNormal = red
oldHighlight = 16 bold red
newNormal = green
newHighlight = 16 bold green