Browse Source

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

Carlo Sala 1 year ago
parent
commit
aca048814b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/theme-and-appearance.zsh

+ 1 - 1
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