Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Last active April 7, 2025 11:31
Show Gist options
  • Save matthewjberger/7dd7e079f282f8138a9dc3b045ebefa0 to your computer and use it in GitHub Desktop.
Save matthewjberger/7dd7e079f282f8138a9dc3b045ebefa0 to your computer and use it in GitHub Desktop.
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@2korzhik
Copy link

2korzhik commented Apr 7, 2025

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.

No need to introduce dependency on curl and jq. With proper download_url wget will be automatically redirected to the latest version
download_url="https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${zip_file}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment