homebrew使ってzshをインストール
$ brew install zsh
補完定義ファイルの設置
$ mkdir ~/.zsh/completion/
$ cd ~/.zsh/completion/
$ curl -O https://raw.github.com/git/git/master/contrib/completion/git-completion.bash
$ curl -O https://raw.github.com/git/git/master/contrib/completion/git-completion.zsh
git-completion.zsh
を_git
にリネーム
$ mv git-completion.zsh _git
.zshrcに以下の記述を追加
fpath=($(brew --prefix)/share/zsh/site-functions $fpath)
autoload -U compinit
compinit -u
zcompdump
をリビルド
$ rm -f ~/.zcompdump; compinit