Colourise diff(1) output, if supported (#7308)

This commit is contained in:
V
2020-09-04 18:43:09 +02:00
committed by GitHub
parent 4817f97823
commit fc13dd362c
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
# Use colours in diff output, if supported
if command -vq diff; and command diff --color=auto /dev/null{,} >/dev/null 2>&1
function diff
command diff --color=auto $argv
end
end