ubuntu使用zsh终端并安装nerd font字体

zsh终端与hack nerd font

  • 安装zsh终端
  • 安装插件
  • 安装nerd font

安装zsh终端

  1. 安装zsh
sudo apt-get update && sudo apt-get install zsh
  1. 查看版本
zsh --version
  1. 为当前用户设置zsh为默认终端
sudo usermod -s /usr/bin/zsh ${whoami}
  1. 重启电脑
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

你可能感兴趣的:(ubuntu)