centos
1.安装zsh
yum install zsh -y
2.使用自动配置脚本
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
3.重新打开shell就是zsh了
MacOS
1.安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装zsh
brew install zsh zsh-completions
3.使用自动配置脚本
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
4.重新打开shell就是zsh了
Oh My Zsh
这里自动脚本Oh My Zsh帮了大忙,省了很多事情,它的项目是https://github.com/robbyrussell/oh-my-zsh。