News for hackers. Stuff that matters.
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:

  diff -u a.txt b.txt | colordiff
Re:Colorize Your CLI by petepete on Sunday July 26, 2020 @03:16PM (#23959417)
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