daniel-s
7/3/2015 - 8:46 AM

Sublime Text command line. http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/ http://stackoverflow.com/questions/108

Sublime Text CLI

Sublime Text has a CLI called subl. We need to add this to the PATH to be able to use it. To to this, we can add a symbolic link to /usr/local/bin typing:

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

Or in my case I've changed the name to simply sublime:

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