mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
fix(theme-and-appearance): avoid infinite recursion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user