]> arthur.barton.de Git - ax-zsh.git/blob - plugins/homebrew/homebrew.zprofile
homebrew: Fix detection of Homebrew command completions
[ax-zsh.git] / plugins / homebrew / homebrew.zprofile
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # homebrew.zprofile -- Setup Homebrew Package Manager
3
4 # Make sure that "brew(1)" is installed
5 (( $+commands[brew] )) || return 1
6
7 eval "$(brew shellenv)"
8
9 for dir (
10         "$HOMEBREW_PREFIX/share/zsh-completions"
11         "$HOMEBREW_PREFIX/share/zsh/site-functions"
12 ); do
13         [[ -d "$dir" ]] && axzsh_fpath+=("$dir")
14
15 done
16 unset dir
17
18 return 0