Skip to content

Instantly share code, notes, and snippets.

@cassinaj
Forked from lucasdavila/1_ubuntu_terminal_command
Created February 7, 2016 11:38
Show Gist options
  • Select an option

  • Save cassinaj/a4a96f760c8be002d43d to your computer and use it in GitHub Desktop.

Select an option

Save cassinaj/a4a96f760c8be002d43d to your computer and use it in GitHub Desktop.

Revisions

  1. @lucasdavila lucasdavila revised this gist Oct 11, 2012. No changes.
  2. @lucasdavila lucasdavila revised this gist Oct 11, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions 1_ubuntu_terminal_command
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # to execute this gist, run the line bellow in terminal
    \curl -L https://raw.github.com/gist/3875946/install_source_code_pro.sh | sh
  3. @lucasdavila lucasdavila created this gist Oct 11, 2012.
    25 changes: 25 additions & 0 deletions install_source_code_pro.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    version=1.010

    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"