MAC下面的终端是神器。而且苹果非常贴心的为我们准备好了ZSH。可惜ZSH不是很好用,需要配合一些插件和模板:oh-my-zsh
将bash切换为zsh
chsh -s /bin/zsh
将zsh切换为bash
chsh -s /bin/bash
下载oh-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