1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-22 04:11:58 +00:00

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

Closes #11416
Closes #11454
This commit is contained in:
Carlo Sala 2023-01-25 08:50:06 +01:00
parent 7de55844b2
commit 657ad0523d

View file

@ -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