安装zsh
:
sudo apt install zsh
通过Gitee
或者GitHub
下载 oh-my-zsh
:
- Gitee下载:
git clone https://gitee.com/mirrors/oh-my-zsh.git
- GitHub下载:
git clone https://github.com/ohmyzsh/ohmyzsh.git
移动并改名
sudo mv oh-my-zsh/ ~/.oh-my-zsh
复制出模板到用户目录
sudo cp .oh-my-zsh/templates/zshrc.zsh-template .zshrc
启动 zsh
zsh
更换主题
sudo vim .zshrc
修改ZSH_THEME
选项
-
ZSH_THEME="steeef"
-
source .zshrc
重启zsh
:
exit
zsh
可看见效果: