I’m using Mac OS X Yosemite and I want to be able to open Sublime Text 2 from the terminal with a command like this:
sublime .
I’ve typed this into terminal as shown on the Sublime Text 2 website:
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/sublime
And also this variant:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
In the terminal, if I type in:
echo $PATH
I get:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
I’ve tried editing my .bash_profile
, right now it’s blank
After all this, I try sublime .
and get the following error:
-bash: sublime: command not found
I’m completely new to Mac OS X, and terminal configuration, and am really struggling to figure out why I can't get it to work so any help would be appreciated.