第一步,检查zsh

先用cat /etc/shells看看

/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh

诶?没有zsh,先装zsh:yum install zsh

好了,有了

/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
/bin/zsh

第二步:安装oh-my-zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

安装成功后切换到zsh

chsh -s /bin/zsh 这里的/bin/zsh是上面cat /etc/shells显示的路径

配置文件在 ~/.zshrc