diff --git a/modules/homebrew/README.md b/modules/homebrew/README.md index 84b43865..12886c04 100644 --- a/modules/homebrew/README.md +++ b/modules/homebrew/README.md @@ -1,7 +1,8 @@ Homebrew ======== -Defines Homebrew aliases. +Defines Homebrew aliases, and if loaded before the completion module, adds +homebrew-installed completions. Aliases ------- diff --git a/modules/homebrew/init.zsh b/modules/homebrew/init.zsh index 1ebe793d..dfc5e571 100644 --- a/modules/homebrew/init.zsh +++ b/modules/homebrew/init.zsh @@ -31,3 +31,7 @@ alias caski='brew cask install' alias caskl='brew cask list' alias casks='brew cask search' alias caskx='brew cask uninstall' + +if (( $+commands[brew] )); then + fpath=(`brew --prefix`/share/zsh/site-functions $fpath) +fi