Sublime Text command line. http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/ http://stackoverflow.com/questions/10892368/problems-using-subl-command-in-terminal-command-not-found-no-such-file-or
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