Fish: Prohibit infinity loop if colordiff is not available
This commit is contained in:
parent
65b2c32d0f
commit
adcf21f04c
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@
|
|||
|
||||
function diff --wraps diff --description "Use colordiff instead of diff, if available"
|
||||
if type -q colordiff
|
||||
colordiff $argv
|
||||
/usr/bin/colordiff $argv
|
||||
else
|
||||
diff $argv
|
||||
/usr/bin/diff $argv
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue