In OS X, is there any way to have Zsh (I'm using Oh-my-zsh) tab-complete formulas?E.g.$ brew install em<TAB>could expand to:$ brew install emacs
Zsh completion of brew formulas
zsh;autocomplete;homebrew
Homebrew provides it's own completion. You just need to link the file $(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh to _brew somewhere in your $fpath.(See comment at the start of https://github.com/Homebrew/homebrew/blob/master/Library/Contributions/brew_zsh_completion.zsh)zsh-completions recently removed its _brew completion in favour of that file, see https://github.com/zsh-users/zsh-completions/issues/305.Update 2016-04-19: At some point(1) Homebrew updated its handling of zsh completion again. Now if you install zsh via Homebrew it should just work. The file is installed to /usr/local/share/zsh/site-functions/_brew.