Step 1 安装zsh Centos7默认是没有zsh的,所以要先执行安装指令 sudo yum install zsh 查看是否安装成功 cat /etc/shells Step 2 切换到zsh 切换指令 sudo chsh -s /bin/zsh 查看当前shell echo $SHELL 重启 sudo reboot Step 3 安装git 同样Centos7默认是没有git的,执行安装指令 sudo yum