1
0
Fork 0
mirror of synced 2024-11-23 07:45:34 -05:00

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

View file

@ -15,6 +15,11 @@ fi
# add the completions to the fpath # add the completions to the fpath
fpath=(${0:h}/external/src ${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 # load and initialize the completion system
autoload -Uz compinit && compinit -C -d "${ZDOTDIR:-${HOME}}/${zcompdump_file:-.zcompdump}" autoload -Uz compinit && compinit -C -d "${ZDOTDIR:-${HOME}}/${zcompdump_file:-.zcompdump}"