From: Oleg Broytman Date: Sun, 29 Apr 2018 17:01:04 +0000 (+0300) Subject: .gitconfig: Add alias `dh` to run diff-highlight X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1d9311cbfa743a494a85dcc28bf87d6c00fa4b58;p=dotfiles.git .gitconfig: Add alias `dh` to run diff-highlight --- diff --git a/.gitconfig b/.gitconfig index 478bd4a..66db0bd 100644 --- a/.gitconfig +++ b/.gitconfig @@ -144,6 +144,7 @@ checkin = commit ci = commit cat = cat-file -p + dh = "!f() { git -c color.diff=always diff \"$@\" | perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less; }; f" dir = rev-parse --git-dir dump = cat-file -p file = cat-file -t