- Make sure
/usr/local/bin
exists. If/bin
does not exist, create that directorysudo mkdir /usr/local/bin
- Create a symb link to sublime
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
- Open up your base profile
vi ~/.bash_profile
- Add the following to your bash_profile and save:
# Sublime
export EDITOR='subl -w'
- Restart terminal and try open a file ex.
sublime .bash_profile