Sublime Text 3 from the command line

Not enabled by default, but nice to have.

Sublime Text 3 is awesome. I won’t talk about that now.

What I did want to quickly blog about is the command line utility. I’ve got a nice long list of bash aliases that I’ll blog about sometime in the future. One thing I wanted was a way to launch Sublime from the command line. In my search, I found Olivier Lacan’s nice writeup about setting up the Sublime CLI. It’s simple.

But if you’re impatient, just do this:

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

Now you can run:

sublime .

And voila, the current directory opens in sublime!