]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/homebrew/homebrew.zprofile
Enhance handling of the Homebrew environment
[ax-zsh.git] / plugins / homebrew / homebrew.zprofile
index 5885efdb57b3720f80f9e10c7a502db94924e984..ccab0b73bb95f9bbaf41dc25aaf29f03b5c0a104 100644 (file)
@@ -4,7 +4,9 @@
 # Make sure that "brew(1)" is installed
 (( $+commands[brew] )) || return 1
 
-[[ -d "/usr/local/share/zsh-completions" ]] \
-       && axzsh_fpath+=(/usr/local/share/zsh-completions)
+eval "$(brew shellenv)"
+
+[[ -d "$HOMEBREW_PREIX/share/zsh-completions" ]] \
+       && axzsh_fpath+=("$HOMEBREW_PREFIX/share/zsh-completions")
 
 return 0