CNOSX

centos安装oh_my_zsh

2017/09/22

1. 安装zsh

1
2
#安装zsh
yum -y install zsh

2. 安装oh_my_zsh

oh_my_zsh官网
http://ohmyz.sh/

1
2
#安装oh_my_zsh
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

3. 切换shell至zsh

1
2
#切换shell至zsh
chsh -s /bin/zsh

4. 重启系统

1
reboot

附件:
相关命令

1
2
#查看当前shell
echo $SHELL