1. 修改默认shell为zsh
chsh -s /bin/zsh
echo $SHELL$
2. 下载oh-my-zsh
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
3. 修改主题
vim ~/.zshrc
ZSH_THEME="agnoster"
source ~/.zshrc
4. 添加语法高亮和自动补全功能
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone git://github.com/zsh-users/zsh-autosuggestions
vim ~/.zshrc
修改为
plugins=(
git zsh-syntax-highlighting zsh-autosuggestions)添加
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh保存
source ~/.zshrc