mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-18 17:11:15 -03:00
Colourise diff(1) output, if supported (#7308)
This commit is contained in:
6
share/functions/diff.fish
Normal file
6
share/functions/diff.fish
Normal 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
|
||||
Reference in New Issue
Block a user