Commit 657ad052 authored by Carlo Sala's avatar Carlo Sala

fix(theme-and-appearance): fix `diff` completion in macOS

Closes #11416 Closes #11454
parent 7de55844
...@@ -41,7 +41,11 @@ fi ...@@ -41,7 +41,11 @@ fi
# enable diff color if possible. # enable diff color if possible.
if command diff --color /dev/null /dev/null &>/dev/null; then if command diff --color /dev/null /dev/null &>/dev/null; then
alias diff='diff --color' function color-diff {
diff --color $@
}
alias diff="color-diff"
compdef _diff color-diff # compdef is already loaded by this point
fi fi
setopt auto_cd setopt auto_cd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment