先安装zsh,同时移除之前可能的oh-my-zsh的安装
sudo apt-get install zsh
if [ -d ~/.oh-my-zsh ]; then
rm -r ~/.oh-my-zsh
fi
自动安装「oh my zsh」, 这个是用来配置zsh软件。(https://github.com/robbyrussell/oh-my-zsh)
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
然后把shell切换成zsh,并重启计算机。
chsh -s `which zsh`
sudo shutdown -r 0