Add brew completions
This commit is contained in:
parent
460090beb9
commit
c9a98cceaf
|
@ -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}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue