]> arthur.barton.de Git - ax-zsh.git/blob - plugins/homebrew/homebrew.zprofile
f59d43edab86d9c1e77cafae23dd7b393cf8904a
[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 if [[ -n "$AXZSH_PLUGIN_CHECK" ]]; then
8         # Make sure brew command is working
9         brew --version >/dev/null 2>&1 || return 1
10 fi
11
12 eval "$(brew shellenv)"
13
14 for dir (
15         "$HOMEBREW_PREFIX/share/zsh-completions"
16         "$HOMEBREW_PREFIX/share/zsh/site-functions"
17 ); do
18         [[ -d "$dir" ]] && axzsh_fpath+=("$dir")
19
20 done
21 unset dir
22
23 return 0