将bash切换为zsh
chsh -s /bin/zsh
但是如果直接切换为zsh的话并没有显著效果,因为太复杂,所以需要oh-my-zsh来将它简单化。如果要切换回去则需要使用:
chsh -s /bin/bash
下载on-my-zsh
- 直接用git从github上面下载包
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
- 备份已有的zshrc(一般并不需要)
cp ~/.zshrc ~/.zshrc.orig
- 替换zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc