Skip to content

Instantly share code, notes, and snippets.

@smac89
Forked from matthewjberger/instructions.md
Created May 28, 2021 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smac89/35d1c7576889419854e3c7d2684cb759 to your computer and use it in GitHub Desktop.
Save smac89/35d1c7576889419854e3c7d2684cb759 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

@smac89
Copy link
Author

smac89 commented May 28, 2021

If you prefer not to checkout too many files from the repo, just use svn to download the folder you want. For example, I just needed Meslo L-DZ Regular, so I did the following:

svn co --depth=empty https://github.com/ryanoasis/nerd-fonts.git/trunk nerd-fonts
cd nerd-fonts
svn up patched-fonts --depth=empty
svn up patched-fonts/Meslo --depth=empty
svn up patched-fonts/Meslo/L-DZ --depth=empty
svn up patched-fonts/Meslo/L-DZ/Regular --depth=empty
svn up patched-fonts/Meslo/L-DZ/Regular/complete --depth=files

Admittedly a bit repetitive, but depending on your internet connection you would have spent more time achieving the same results with git. You could also decide to write a script for this if you deem it necessary.

All you need to do to keep it up to date is (from the root of the repo):

svn up

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