Skip to content

Instantly share code, notes, and snippets.

@nikhita
Created April 24, 2017 17:32
Show Gist options
  • Save nikhita/95f1314f14cf613e78106eb9b89059e1 to your computer and use it in GitHub Desktop.
Save nikhita/95f1314f14cf613e78106eb9b89059e1 to your computer and use it in GitHub Desktop.
How to install FiraCode font on Linux
mkdir -p ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done
fc-cache -f
@MarcosSantosDev
Copy link

Very simple! thank you.

@CeruttiMaicon
Copy link

nice! thank you!

@JoelSpinelli
Copy link

Thank you!

@hiroyalty
Copy link

Thank you

@azubuike-nnamdi
Copy link

Thanks

@jdromero88
Copy link

Thank you!!!

@JaveedIshaq
Copy link

thanks

@huytran46
Copy link

Thank you ! Love this FiraCode Retina font

@G33kNoob
Copy link

thanks simple and save my day

@Shiyinq
Copy link

Shiyinq commented Jul 8, 2020

Thank You

@zhaiqiming
Copy link

THanks

Copy link

ghost commented Dec 8, 2020

Thanks!!!

@Miltonr87
Copy link

Thanks for the script! Helps a lot!

@jaketripp
Copy link

Thanks so much! My eyes are so much happier 😭

@achillar
Copy link

achillar commented Mar 8, 2021

Thanks!

@marquespedro
Copy link

Great!

@lucatsf
Copy link

lucatsf commented Apr 21, 2021

Thanks!

@docteurcode
Copy link

thanks man !

@AnthoniG
Copy link

AnthoniG commented Jun 5, 2021

Thanks. Works perfectly in mint

@johnatan-etges
Copy link

Tank you! works fine.

@miozus
Copy link

miozus commented Aug 2, 2021

爱你

@mattrighetti
Copy link

sudo apt install fonts-firacode should do the work on Ubuntu

@slinkardbrandon
Copy link

Seems like this doesn't work anymore, getting 404s on the specified url

@gglachant
Copy link

Font files have been deleted from the official repository.

@blessedmadukoma
Copy link

sudo apt install fonts-firacode this works on linux mint

@magictomagic
Copy link

@Akhilbisht798
Copy link

#!/usr/bin/env bash

fonts_dir="${HOME}/.local/share/fonts"
if [ ! -d "${fonts_dir}" ]; then
echo "mkdir -p $fonts_dir"
mkdir -p "${fonts_dir}"
else
echo "Found fonts dir $fonts_dir"
fi

version=5.2
zip=Fira_Code_v${version}.zip
curl --fail --location --show-error https://github.com/tonsky/FiraCode/releases/download/${version}/${zip} --output ${zip}
unzip -o -q -d ${fonts_dir} ${zip}
rm ${zip}

echo "fc-cache -f"
fc-cache -f

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