
CentOS7安装zsh配置oh-my-zsh
1.查看当前shell
1 | echo $SHELL |
结果:
1 | bin/bash |
2.安装zsh
1 | yum install -y zsh |
3.在root用户下设置zsh为默认shell
1 | chsh -s /bin/zsh |
4.zsh需要git支持
1 | yum install -y git |
5.安装oh-my-zsh
自动安装:
1 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
手动安装:
下载源码:
1
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
复制配置:
1
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
6.配置主题
1 | vim ~/.zshrc |
修改ZSH_THEME即可
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 轨 道 兔!
评论