$ brew install zsh
Set shell
$ chsh -s /usr/local/bin/zsh
Install oh-my-zsh
$ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
Set oh-my-zsh
$ cp ~/.oh-my-zsh/templates/zshrc.zsh-tmplate ~/.zshrc
$ cat ~/.bash_profile >> ~/.zshrc
Install zsh-completions
$ brew install zsh-completions
Set zsh-completions
echo 'if [ -d ${HOME}/.zsh/zsh-completions/src ] ; then' >> ~/.zshrc
echo ' fpath=(${HOME}/.zsh/zsh-completions/src $fpath)' >> ~/.zshrc
echo ' compinit' >> ~/.zshrc
echo fi >> ~/.zshrc
Mac OSX Set shell Preference
shell->Preference->Shells open with->Command(complete path)
/bin/zsh -i
Open zsh
Rebuild zsh
$ rm -f ~/.zcompdump; compinit
沒有留言:
張貼留言