一、安装基本组件
首先执行 yum 命令来安装需要的 zsh 原始程序与 git 程序来 pull 代码。
yum install -y zsh git
安装 oh my zsh 脚本 (这一步需要安装 git)。
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
使用 which zsh 查看 zsh 的安装目录,一般都存储在 /usr/bin/zsh 目录下。
which zsh
使用 chsh 命令切换使用的 shell 程序。
chsh -s /usr/bin