Last Updated: February 25, 2016
·
430
· dreispt

Colorized diff output in the terminal console

If you find diff output hard to read on a terminal, use the colordiff utility.

Install (on Debian (or Ubuntu):

sudo apt-get install colordiff

Now check it with you favorite version control tool:

git diff | colordiff

or

bzr diff | colordiff

Better yet:

alias gitdiff="git diff|colordiff|less -R"
alias bzrdiff="bzr diff|colordiff|less -R"