Summary
vagrant を使うようになったので、zshの補完を強化したい。zsh-completions を使うことで、補完を強化する。
zsh-completions のダウンロード (git)
mkdir ~/.zsh
cd ~/.zsh
git clone git://github.com/zsh-users/zsh-completions.git
.zshrc (git)
if [[ -d $HOME/.zsh/zsh-completions/src ]]; then
fpath=($HOME/.zsh/zsh-completions/src $fpath)
fi
autoload -Uz compinit
compinit -u
Install (homebrew)
brew install zsh-completions
.zshrc (homebrew)
if [[ -d /usr/local/share/zsh-completions ]; then
fpath=(/usr/local/share/zsh-completions $fpath)
fi
autoload -Uz compinit
compinit -u
rebuild 'zcompdump'
rm -f ~/.zcompdump
compinit
Reference
GitHub - zsh-users/zsh-completionshttps://github.com/zsh-users/zsh-completions