Skip to content

Instantly share code, notes, and snippets.

@nikhita
Created April 24, 2017 17:32
Show Gist options
  • Select an option

  • Save nikhita/95f1314f14cf613e78106eb9b89059e1 to your computer and use it in GitHub Desktop.

Select an option

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
Copy link
Copy Markdown

ghost commented Dec 8, 2020

Thanks!!!

@Miltonr87
Copy link
Copy Markdown

Thanks for the script! Helps a lot!

@jaketripp
Copy link
Copy Markdown

Thanks so much! My eyes are so much happier 😭

@achillar
Copy link
Copy Markdown

achillar commented Mar 8, 2021

Thanks!

@marquespedro
Copy link
Copy Markdown

Great!

@lucatsf
Copy link
Copy Markdown

lucatsf commented Apr 21, 2021

Thanks!

@docteurcode
Copy link
Copy Markdown

thanks man !

@AnthoniG
Copy link
Copy Markdown

AnthoniG commented Jun 5, 2021

Thanks. Works perfectly in mint

@johnatan-etges
Copy link
Copy Markdown

Tank you! works fine.

@miozus
Copy link
Copy Markdown

miozus commented Aug 2, 2021

爱你

@mattrighetti
Copy link
Copy Markdown

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

@slinkardbrandon
Copy link
Copy Markdown

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

@gglachant
Copy link
Copy Markdown

Font files have been deleted from the official repository.

@blessedmadukoma
Copy link
Copy Markdown

sudo apt install fonts-firacode this works on linux mint

@magictomagic
Copy link
Copy Markdown

@Akhilbisht798
Copy link
Copy Markdown

#!/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