]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/homebrew/homebrew.zprofile
New "venv" plugin
[ax-zsh.git] / plugins / homebrew / homebrew.zprofile
index 476b65dd3790fdbfcb7a1af210768d487f070257..5885efdb57b3720f80f9e10c7a502db94924e984 100644 (file)
@@ -2,15 +2,9 @@
 # homebrew.zprofile -- Setup Homebrew Package Manager
 
 # Make sure that "brew(1)" is installed
-(( $+commands[brew] )) || return
+(( $+commands[brew] )) || return 1
 
 [[ -d "/usr/local/share/zsh-completions" ]] \
-       && axzsh_fpath=(/usr/local/share/zsh-completions $axzsh_fpath)
+       && axzsh_fpath+=(/usr/local/share/zsh-completions)
 
-completion_file="$(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh"
-target_file="$(dirname "$0")/functions/_brew"
-
-[[ -r "$completion_file" && ! -r "$target_file" ]] \
-       && ln -fs "$completion_file" "$target_file"
-
-unset completion_file target_file
+return 0