Git diff-so-fancy

From wikinotes

Reformats the git-diff headers so that they are MUCH more readable. https://github.com/so-fancy/diff-so-fancy

NOTE:

I've stopped using this globally. It wasn't working consistently everywhere. Instead, I really like Git config#diff-highlight, which ships with git.

Documentation

github https://github.com/so-fancy/diff-so-fancy

Install

sudo pacman -S npm
sudo npm install -g diff-so-fancy

git config --global pager.diff "diff-so-fancy | less --tabs=1,5 -RFX"
git config --global pager.show "diff-so-fancy | less --tabs=1,5 -RFX"