Skip to content

Instantly share code, notes, and snippets.

@jlord
Created March 13, 2014 00:47
Show Gist options
  • Save jlord/9519830 to your computer and use it in GitHub Desktop.
Save jlord/9519830 to your computer and use it in GitHub Desktop.
Getting `subl` for Sublime Text 2

Here's what I think I did, pulled out from all the non effective things I did.

$ ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
# had to change permissions on something 
$ chmod 700 /usr/local/bin/sublime
# or maybe it was
$ chmod 700 /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
# then changed the name of the shortcut to 'subl'
$ cd /
$ cd usr/local/bin
$ open .
# remanme file, bam

Maybe next time just doing this will work

$ ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
# and and `chmod 700` to whatever error I get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment