Skip to content

Instantly share code, notes, and snippets.

@Auraelius
Created May 8, 2015 01:57
Show Gist options
  • Save Auraelius/7eedd27d1c8c9b38bd3c to your computer and use it in GitHub Desktop.
Save Auraelius/7eedd27d1c8c9b38bd3c to your computer and use it in GitHub Desktop.
How to run Sublime Text from the command line on OSX
# this is a comment
#
# "mkdir ~/bin" makes a "bin" folder in your home folder. this is a good place to put your own programs
# "rm ~/bin/subl" removes any "subl" command that you might already have
# 'ln -s "/Appli...."' links "subl" to the app in your Applications folder
# cut and paste these commands into your terminal shell:
mkdir ~/bin
rm ~/bin/subl
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
# if your PATH is set up correctly, you should be able to type "subl" into the terminal shell and it should bring up Sublime Text.
# If it doesn't work, you need to set up your path. That's a subject for a different gist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment