Created
April 24, 2017 17:32
-
-
Save nikhita/95f1314f14cf613e78106eb9b89059e1 to your computer and use it in GitHub Desktop.
How to install FiraCode font on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
爱你
sudo apt install fonts-firacode
should do the work on Ubuntu
Seems like this doesn't work anymore, getting 404s on the specified url
Font files have been deleted from the official repository.
sudo apt install fonts-firacode this works on linux mint
Better use official way:
https://src.fedoraproject.org/rpms/fira-code-fonts
#!/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
Tank you! works fine.