Created
August 16, 2023 21:43
-
-
Save worldofgeese/af966eb29b147c1b13c345684a2edb81 to your computer and use it in GitHub Desktop.
Fira Code install script
This file contains hidden or 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
#!/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