From c9a98cceaf3685c2e15c1c5dd9f58d3df92b9763 Mon Sep 17 00:00:00 2001 From: Xiaoxun Zeng Date: Sun, 30 Jul 2017 11:49:09 -0700 Subject: [PATCH] Add brew completions --- modules/completion/init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 1658946..8fb9107 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -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}"