首先下载zsh,千万别用yum install 因为版本低了
去源码下载 点这
戒指运行解压命令
root@loacalhost$ tar -xvf zsh-5.8.tar.xz
root@loacalhost$ cd zsh-5.8
./config
make && make install
export SHELL="which zsh"
安装号zsh后就需要安装美化的zinit
git clone https://github.com/zdharma/zinit.git ~/.zinit/bin
source ~/.zinit/bin/zinit.zsh
安装完成后执行
vim ~/.zshrc
修改
# ZSH_THEME="powerlevel10k/powerlevel zinit ice depth=1; zinit light romkatv/powerlevel10k
然后保存退出:wq
继续,刷新zsh
source ~/.zshrc
https://www.jianshu.com/p/b8a80dd59414
https://blog.csdn.net/qq_40938528/article/details/117338066
https://www.cnblogs.com/hongdada/p/14048612.html