Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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


This comment has been minimized.

Copy link
Owner Author

@smac89 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 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