Skip to content

Instantly share code, notes, and snippets.

@alexwolfe
Created December 16, 2016 02:48
Show Gist options
  • Save alexwolfe/ef1903405aec5ea731e167d66c9aad46 to your computer and use it in GitHub Desktop.
Save alexwolfe/ef1903405aec5ea731e167d66c9aad46 to your computer and use it in GitHub Desktop.
Setting up sublime on the command line
  1. Make sure /usr/local/bin exists. If /bin does not exist, create that directory sudo mkdir /usr/local/bin
  2. Create a symb link to sublime sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
  3. Open up your base profile vi ~/.bash_profile
  4. Add the following to your bash_profile and save:
# Sublime
export EDITOR='subl -w'
  1. Restart terminal and try open a file ex. sublime .bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment