Launching Sublime Text 3 from the Command Line in OSX Mavericks

After installing Sublime Text 3, you may want to open a file / folder directly from the command line by using the subl alias. To do this, simply add a symbolic link to the subl after making sure that you PATH has ~/bin.

> printenv | grep bin
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Create the symbolic link

sudo ln -sf "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl

Another handy trick to know about sublime text is that you can open folders directly from the command line by navigating to the respective folder and calling

subl .

Enjoy!

– Ackshaey

www.ackshaey.com