I am having problems changing the path for adding Sublime Text 2. I added the ~/bin and ran this command :
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
The subl link appears in ~/bin . But I need to add the ~/bin to my path. I am new to this and I do not know where my path is. I looked around and found that the probable files are .profile , .bash_profile or .bashrc
I do not have .bash_profile . In .profile and .bashrc I added
PATH=$PATH:~/bin/subl export PATH
Is this the right thing to add? And if so, where should I add it?
When I echo $PATH , I get:
/Users/<username>/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/bin:/Users/<username>/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/<username>/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/<username>/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
When I print subl , I get:
-bash: subl: command not found
Thank!
ps I previously installed Macports, which modified my .profile file. Not sure if this is due to this - now I don’t know what the default .profile looks like.
bash sublimetext macos
Graeme May 26 '12 at 15:58 2012-05-26 15:58
source share