Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ykostr/80f465a8aa1cf162814fd9f9a677bbe9 to your computer and use it in GitHub Desktop.
Save ykostr/80f465a8aa1cf162814fd9f9a677bbe9 to your computer and use it in GitHub Desktop.

Revisions

  1. @enzinier enzinier revised this gist Mar 4, 2017. No changes.
  2. @enzinier enzinier created this gist Mar 4, 2017.
    18 changes: 18 additions & 0 deletions install_font_adobe_source_code_pro.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #!/bin/sh
    # Userland mode (~$USER/), (~/).

    # ~/.fonts is now deprecated and that
    #FONT_HOME=~/.fonts
    # ~/.local/share/fonts should be used instead
    FONT_HOME=~/.local/share/fonts

    echo "installing fonts at $PWD to $FONT_HOME"
    mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
    # find "$FONT_HOME" -iname '*.ttf' -exec echo '{}' \;

    (git clone \
    --branch release \
    --depth 1 \
    'https://github.com/adobe-fonts/source-code-pro.git' \
    "$FONT_HOME/adobe-fonts/source-code-pro" && \
    fc-cache -f -v "$FONT_HOME/adobe-fonts/source-code-pro")