1 安装zsh
sudo apt get install zsh
2 安装on_my_zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
3 语法高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
4 语法历史记录插件
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# sudo vim ~/.zshrc
plugins=(git zsh-autosuggestions)
# source ~/.zshrc
5 卸载zsh和oh-my-zsh
sudo apt-get --purge remove zsh
sudo sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/uninstall.sh)"
6 agnoster主题的坑
会出现git分支的符号中文乱码,还是用默认主题吧