X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/6093fc3ea2f1981fa5305f5933eeaaaad2075312..ef9bb585b49b964763e88de061eee5ff114e2940:/dot/gitconfig.in 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 ' \