安装
https://juejin.cn/post/7023578642156355592
优化
插件 https://www.bktus.com/zh-cn/archives/2759
$ vim ~/.zshrc
添加
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
优化history
export HISTFILEFLESIZE=1000000000
export HISTSIZE=1000000000
export HISTTIMEFORMAT="[%F %T ]"
setopt HIST_IGNORE_ALL_DUPS
效果:添加时间信息,去除重复值
$ history -E
2 23.6.2022 18:53 cd
5 23.6.2022 18:54 hisotry
9 23.6.2022 18:54 ps -ef | clash
10 23.6.2022 18:55 fg
13 24.6.2022 11:18 sudo mv '/home/fu/Downloads/MesloLGS NF Bold.ttf' /user/share/fonts/TTF
安装powerlevel100k主题
https://github.com/romkatv/powerlevel10k 下载字体文件
$ sudo mv '/home/fu/Downloads/MesloLGS NF Bold.ttf' /user/share/fonts/TTF
$ sudo mv '/home/fu/Downloads/MesloLGS NF Bold.ttf' /user/share/fonts/TTF/
$ sudo mv '/home/fu/Downloads/MesloLGS NF Bold.ttf' /usr/share/fonts/TTF/
$ sudo mv '/home/fu/Downloads/MesloLGS NF Bold Italic.ttf' /usr/share/fonts/TTF/
安装
$ git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ~/powerlevel10k
$ echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
设置配置文件中的主题~/.zshrc
-> ZSH_THEME="powerlevel10k/powerlevel10k"
重启source ~/.zshrc
并按提示进行首次配置