fix(theme-and-appearance): avoid infinite recursion

master
Carlo Sala 3 years ago
parent a24e91908a
commit aca048814b
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A
  1. 2
      lib/theme-and-appearance.zsh

@ -47,7 +47,7 @@ fi
# enable diff color if possible.
if command diff --color /dev/null /dev/null &>/dev/null; then
function color-diff {
diff --color $@
command diff --color $@
}
alias diff="color-diff"
compdef _diff color-diff # compdef is already loaded by this point

Loading…
Cancel
Save