Skip to content

Instantly share code, notes, and snippets.

Forked from lucasdavila/1_ubuntu_terminal_command
Last active July 30, 2018 19:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sbseltzer/2e9c791bf8f57a388cfffc4dd92824db to your computer and use it in GitHub Desktop.
Installing Source Code Pro fonts in ubuntu
# to execute this gist, run the line bellow in terminal
\curl -L | sh
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("<Folder or Share Location>")
Set objFolderItem = objFolder.ParseName("<TTF File Name>")
echo "\n* Downloading version $version of source code pro font"
rm -f SourceCodePro_FontsOnly-$
rm -rf SourceCodePro_FontsOnly-$version
curl -L$ > SourceCodePro_FontsOnly-$
echo "\n* Unziping package"
unzip SourceCodePro_FontsOnly-$
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"
Copy link

This didn't work for me in a new custom windows git bash environment. I should figure out why later.

Copy link

I got half-way and got bored. Finish later for win10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment