Skip to content

Instantly share code, notes, and snippets.

@thatryan
Created November 23, 2017 05:51
Show Gist options
  • Save thatryan/27b6badc66fec54343f86d67cac57210 to your computer and use it in GitHub Desktop.
Save thatryan/27b6badc66fec54343f86d67cac57210 to your computer and use it in GitHub Desktop.

Revisions

  1. thatryan created this gist Nov 23, 2017.
    26 changes: 26 additions & 0 deletions sublime.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    #!/bin/sh

    fancy_echo() {
    local fmt="$1"; shift

    printf "\n$fmt\n" "$@"
    }

    package_control_url="https://packagecontrol.io/Package%20Control.sublime-package"

    fancy_echo "Creating Sublime directories..."

    mkdir -p $HOME/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/
    mkdir $HOME/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages

    fancy_echo "Installing Sublime..."

    brew cask install sublime-text

    fancy_echo "Grabbing Package Control..."

    wget $package_control_url -P "$HOME/Library/Application Support/Sublime Text 3/Installed Packages"

    fancy_echo "Copying settings file..."

    cp -R settings/. "$HOME/Library/Application Support/Sublime Text 3/Packages/User/"