linux终端美化
首先下载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后就需要安装美化的zinitgit 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
继续,刷新zshsource ~/.zshrc
安装命令自动补全git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
添加补全插件plugins=(git docker-compose autojump zsh-autosuggestions)
参考连接:
https://www.jianshu.com/p/b8a80dd59414
https://blog.csdn.net/qq_40938528/article/details/117338066
https://www.cnblogs.com/hongdada/p/14048612.html