Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Last active April 30, 2024 18:02
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

@EricEon
Copy link

EricEon commented May 13, 2023

@p6002 for linux, open a text editor and paste the code from @donovan . Then you can save it as installFonts.sh. Your will then have to make it runnable from the properties context menu for the file. Then run it in a terminal with ./installFonts.sh

@p6002
Copy link

p6002 commented May 13, 2023

Thanks, but I have already made several approaches to these fonts, hours-long approaches.
There were always unfixable problems, errors, bad characters. Which was frustrating enough, since it's just a theme and should work with a single command.
For now I'm watching the project and waiting for someone to write proper documentation with steps on how to install this theme. Currently it's such a mess there that I think only the author can use it.

@hiAndrewQuinn
Copy link

hiAndrewQuinn commented Oct 8, 2023

It took an embarrassingly long amount of time for me to realize nerd-fonts the Github repo already comes with an install.sh script.

git clone --depth 1 https://github.com/ryanoasis/nerd-fonts.git    # warning: takes a while

cd nerd-fonts/
./install.sh FiraCode

(or whatever other font you want -- or all of them if you just run ./install.sh by itself.

@wpplumber
Copy link

Thank you, @hiAndrewQuinn

@stuaxo
Copy link

stuaxo commented Nov 7, 2023

@hiAndrewQuinn's example should probably be on the main README considering the amount of us that have ended up here.

@p6002
Copy link

p6002 commented Nov 7, 2023

I still waiting for proper documentation how to install and use it.
In the meantime, I started the rack, I learned how to use Docker, I run services through Docker Compose and several VMs without any problems. But I still can't install the fonts...

@Tolomeo
Copy link

Tolomeo commented Dec 23, 2023

@Sephyros absolutely amazing 👍

@mcarvalho1
Copy link

Hi guys, after testing several linux distros and having to configure and customize my terminal and shell every time, I decided to create this script that downloads directly from the Nerd Fonts repository, use it as you like and if you want to contribute something, feel free.

The documentation on how to use the script is in the readme:
https://github.com/mcarvalho1/Nerd-fonts-Downloader-Script

@pedroigor91
Copy link

Thanks @mcarvalho1!

@7adidaz
Copy link

7adidaz commented Apr 30, 2024

@donovan @Sephyros thanks both

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