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'
Written by Jackilyn
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#