Skip to content

Instantly share code, notes, and snippets.

@worldofgeese
Created August 16, 2023 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save worldofgeese/af966eb29b147c1b13c345684a2edb81 to your computer and use it in GitHub Desktop.
Save worldofgeese/af966eb29b147c1b13c345684a2edb81 to your computer and use it in GitHub Desktop.
Fira Code install script
#!/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