Fish: Prohibit infinity loop if colordiff is not available

This commit is contained in:
Marcel Kapfer 2019-06-11 17:13:56 +02:00
parent 65b2c32d0f
commit adcf21f04c
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -20,8 +20,8 @@
function diff --wraps diff --description "Use colordiff instead of diff, if available" function diff --wraps diff --description "Use colordiff instead of diff, if available"
if type -q colordiff if type -q colordiff
colordiff $argv /usr/bin/colordiff $argv
else else
diff $argv /usr/bin/diff $argv
end end
end end