第一步:安装oh-my-zsh
git clone git@github.com:ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
复制.zshrc,注意复制前一定要拷贝环境变量
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
更改默认shell
chsh -s /bin/zsh
安装插件
git clone git@github.com:zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone git@github.com:zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
修改配置文件
plugins=( git
zsh-autosuggestions
zsh-syntax-highlighting
z)
source $ZSH/oh-my-zsh.sh