Browse Source

lib: prefix diff call with command to bypass diff aliases

See https://github.com/ohmyzsh/ohmyzsh/pull/8807#issuecomment-652697704
Marc Cornellà 3 years ago
parent
commit
d0d01c0bbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/theme-and-appearance.zsh

+ 1 - 1
lib/theme-and-appearance.zsh

@@ -40,7 +40,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
 fi
 
 # enable diff color if possible.
-if diff --color . . &>/dev/null; then
+if command diff --color . . &>/dev/null; then
   alias diff='diff --color'
 fi