Add brew completions

This commit is contained in:
Xiaoxun Zeng 2017-07-30 11:49:09 -07:00 committed by GitHub
parent 460090beb9
commit c9a98cceaf
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ fi
# add the completions to the fpath
fpath=(${0:h}/external/src ${fpath})
# add the brew completions to the fpath
if (( $+commands[brew] )); then
fpath=($(brew --prefix)/share/zsh/site-functions ${fpath})
fi
# load and initialize the completion system
autoload -Uz compinit && compinit -C -d "${ZDOTDIR:-${HOME}}/${zcompdump_file:-.zcompdump}"