Skip to content

Instantly share code, notes, and snippets.

@ephdtrg
Forked from agarzon/installSourceCodePro.sh
Created December 28, 2021 14:58
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 ephdtrg/06f6056be8bc59650c3bfea3743323be to your computer and use it in GitHub Desktop.
Save ephdtrg/06f6056be8bc59650c3bfea3743323be to your computer and use it in GitHub Desktop.
Install Source Code Pro fonts on Linux
version=1.017R
echo "\n* Downloading version $version of source code pro font"
rm -f SourceCodePro_FontsOnly-$version.zip
rm -rf SourceCodePro_FontsOnly-$version
wget https://github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly-$version.zip
echo "\n* Unziping package"
unzip SourceCodePro_FontsOnly-$version.zip
mkdir -p ~/.fonts
echo "\n* Copying fonts to ~/fonts"
cp SourceCodePro_FontsOnly-$version/OTF/*.otf ~/.fonts/
echo "\n* Updating font cache"
sudo fc-cache -f -v
echo "\n* Looking for 'Source Code Pro' in installed fonts"
fc-list | grep "Source Code Pro"
echo "\n* Now, you can use the 'Source Code Pro' fonts, ** for sublime text ** just add the lines bellow to 'Preferences > Settings':"
echo '\n "font_face": "Source Code Pro",'
echo ' "font_size": 10'
echo "\n* Finished :)\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment