Hacker News new | ask | show | jobs
by tzury 2158 days ago
`diff --color=auto` is nice, but `vimdiff` is superior
2 comments

I myself have really enjoyed `delta` and the variety of configuration it has: https://github.com/dandavison/delta
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
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