1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
I made a small, but useful to me, change to @donovan code. I added code to look up the latest version of nerd fonts and download those.我对代码做了一个小的但对我有用的更改。我添加了代码来查找最新版本的 nerd 字体并下载它们。
No need to introduce dependency on
curl
andjq
. With proper download_urlwget
will be automatically redirected to the latest version无需引入对curl
和jq
的依赖。通过适当的 download_urlwget
将自动重定向到最新版本 download_url="https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${zip_file}"download_url=“https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${zip_file}”
i tested use latest URL it not found
thank you so much, it's good version
Since I just loaded Ubuntu on a new computer, had trouble and found this page, I'll add that the instructions at the top are great except unzipping didn't put them in a folder for me, so neovim/lazyvim didn't seem to load them properly. To get it to load, I had to put it into a folder inside the font folder. For example, after downloading FiraCode Nerd Font I went to my Downloads folder and ran...
Very manual, but I don't think I should need to update these very often!