Last Updated: February 25, 2016
· jackilyn

Launch Sublime Text 2 from the Terminal

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

You can also set it as the default editor
export EDITOR='sublime -w'

1 Response
Add your response


Add export EDITOR='sublime -w'</code> to .bash_profile</code>, in your home directory, so that the sublime is the default editor for all terminal sessions.

If the file doen't exist than you can create it: sublime -w .bash_profile</code>, but remember to be in your home directory cd ~/</code>.

over 1 year ago ·