Homebrewでzsh-completionsによる補完を使うには、zsh-completionsパッケージをインストールします。
$ brew install zsh-completions
.zshrcに、インストール時に表示された以下のような記述を追加する。既に記述済みの設定がある場合は適宜調整する。
fpath=(/path/to/homebrew/share/zsh-completions $fpath)
autoload -U compinit
compinit -uzcompdumpをリビルドする。
$ rm -f ~/.zcompdump; compinitシェルを再起動すると、ackやherokuコマンドなどで補完が有効になる。どのようなコマンドの補完が用意されているかは https://github.com/zsh-users/zsh-completions/tree/master/src を参照。
typo
- $ brew instsall zsh-completions+ $ brew install zsh-completions