anwwqa
Last Updated: February 25, 2016
·
1.128K
· sephvelut

Launch Sublime Text 2 from terminal

Sublime Text 2 comes with a cli utility called subl. If you refer to the Sublime text 2 official documentation, it says to create a bin folder in your home dir. Well.. I don't like doing that so lets create a symlink to make it work with our perfectly fine /usr/bin dir.

ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

Thats it, thanks for reading : )

-- Make sure your bash (ie. ~/.bash_profile) has a path to your /usr/bin..

2 Responses
Add your response

8567

Thanks for sharing this! It worked! :)
I'm actually running Sublime Text 3 and because they dropped the version number from the application name, I had to remove the number 2, and run it like this:
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

over 1 year ago ·
8607

Sweet. I would probably jump into Sublime Text 3 if I wasn't so hooked to my custom Macvim setup.

over 1 year ago ·