Launch Sublime Text from the command line

To file under 1-minute-fixes.

I find it extremely helpful to open files directly from the command line while in Terminal. Sublime Text —unlike TextMate— doesn’t set up a command for this, but this is easy enough to fix.

Sublime Text Logo Icon by omarrr

The documentation explains how to create a link to sublime in your local bin via:

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

which allows you to open files from the terminal like this:

$ subl ~/.profile

Done!