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后就需要安装美化的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

安装命令自动补全
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

posted @ 2021-08-24 20:13  自律のalive  阅读(83)  评论(0编辑  收藏  举报