Forked from lucasdavila/1_ubuntu_terminal_command
Last active
August 29, 2015 14:14
-
-
Save simonkberg/110d1e7a4aaa9a255d2f to your computer and use it in GitHub Desktop.
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
# to execute this gist, run the line bellow in terminal | |
\curl -L https://gist.githubusercontent.com/SimonKberg/110d1e7a4aaa9a255d2f/raw/b1ab0653403081c97ae3d7567ec45963883ed6d6/install_source_code_pro.sh | sh |
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
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/adobe-fonts/source-code-pro/archive/$version.zip -O source-code-pro-$version.zip | |
echo "\n* Unziping package" | |
unzip source-code-pro-$version.zip | |
mkdir -p ~/.fonts | |
echo "\n* Copying fonts to ~/fonts" | |
cp source-code-pro-$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* Cleaning up..." | |
rm source-code-pro-$version.zip | |
rm -r source-code-pro-$version | |
echo "\n* Finished :)\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment