zsh终端与hack nerd font
安装zsh终端
- 安装zsh
sudo apt-get update && sudo apt-get install zsh
- 查看版本
zsh --version
- 为当前用户设置zsh为默认终端
sudo usermod -s /usr/bin/zsh ${whoami}
- 重启电脑
reboot
安装插件
Powerlevel9k
sudo apt install zsh-theme-powerlevel9k
echo "source /usr/share/powerlevel9k/powerlevel9k.zsh-theme" >> ~/.zshrc
语法高亮显示
sudo apt install zsh-syntax-highlighting
echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
安装nerd font
wget https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.zip
或者访问nerd font github下载Hack Regular Nerd Font Complete Mono.ttf
sudo cp Hack Regular Nerd Font Complete Mono.ttf \usr\share\fonts
刷新字体
fc-cache -fv