From: Mark Wooding Date: Sat, 18 Mar 2023 21:45:26 +0000 (+0000) Subject: dot/gitconfig.in: Run `diff-highlight' from the path, if it's there. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/96ceecfbaee11a786e56c9a79d2fca7c186af0eb dot/gitconfig.in: Run `diff-highlight' from the path, if it's there. Don't expect it to be hiding away in `/usr/share/doc/...', because it's only me that's crazy enough to do that, and it was a bad idea. --- diff --git a/dot/gitconfig.in b/dot/gitconfig.in index 84d1192..0ec6ed2 100644 --- a/dot/gitconfig.in +++ b/dot/gitconfig.in @@ -90,9 +90,9 @@ ui = auto column dense [pager] - log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager - show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager - diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager + diff = "if type >/dev/null 2>&1 diff-highlight; then diff-highlight; else cat; fi | mdw-pager" + log = "if type >/dev/null 2>&1 diff-highlight; then diff-highlight; else cat; fi | mdw-pager" + show = "if type >/dev/null 2>&1 diff-highlight; then diff-highlight; else cat; fi | mdw-pager" [alias] do = "!sh -e -c ' \