# 終端機設定指引
作業程序:
- 安裝 Nerd Font 字型
- 設定終端機使用 Nerd Font 字型
# 安裝 Nerd Font 字型
- Download Nerd Font to Host.
cd build
wget https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/FiraMono/Regular/complete/Fira%20Mono%20Regular%20Nerd%20Font%20Complete.otf
1
2
2
- Copy font to system-wide font:
sudo cp 'Fira Mono Regular nerd Font Complete.otf' /usr/share/fonts/
1
$ fc-cache -f -v
$ fc-list | grep "Fira"
1
2
2
$ su -
$ cd /usr/share/fonts/truetype/
$ wget https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.zip
$ unzip Hack-v3.003-ttf.zip
$ fc-cache -f -v
$ fc-list | grep "Hack"
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 設定終端機使用 Nerd Font 字型
- 下載字型
mkdir -p ~/.local/share/fonts && cd $_
curl -fLo "Fira Code Regular Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/FiraMono/Regular/complete/Fira%20Mono%20Regular%20Nerd%20Font%20Complete.otf?raw=true
1
2
3
2
3
https://www.chrisatmachine.com/Linux/05-nerd-fonts/
- 設定 Terminal 選用 “FiraMono Nerd Font” 字型
# 驗證
- 執行 vim 驗證