]> arthur.ath.cx Git - ax-zsh.git/blobdiff - plugins/homebrew/homebrew.zprofile
homebrew: Fix detection of Homebrew command completions
[ax-zsh.git] / plugins / homebrew / homebrew.zprofile
index ccab0b73bb95f9bbaf41dc25aaf29f03b5c0a104..84cb740d0347bfcc6f29dafe79eae2d680b2d814 100644 (file)
@@ -6,7 +6,13 @@
 
 eval "$(brew shellenv)"
 
-[[ -d "$HOMEBREW_PREIX/share/zsh-completions" ]] \
-       && axzsh_fpath+=("$HOMEBREW_PREFIX/share/zsh-completions")
+for dir (
+       "$HOMEBREW_PREFIX/share/zsh-completions"
+       "$HOMEBREW_PREFIX/share/zsh/site-functions"
+); do
+       [[ -d "$dir" ]] && axzsh_fpath+=("$dir")
+
+done
+unset dir
 
 return 0