I have followed the directions here http://www.sublimetext.com/docs/2/osx_command_line.html and have not been able to successfully install the sublime command line tool.
Setup
The first task is to make a symlink to subl. Assuming you've placed Sublime Text 2 in the Applications folder, and that you have a ~/bin directory in your path, you can run:
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
I am using a fresh install of Mac OS 10.8 Mountain Lion. Here is what I tried:
- Code: Select all
Keils-iMac:~ keiljr$ ls -a
. .gem Documents
.. .gitconfig Downloads
.CFUserTextEncoding .rvm Library
.DS_Store .viminfo Movies
.Trash .zlogin Music
.bash_history .zshrc Pictures
.bash_login Archive Projects
.bashrc Desktop Public
Keils-iMac:~ keiljr$ mkdir bin
Keils-iMac:~ keiljr$ cd bin
Keils-iMac:bin keiljr$ mkdir subl
Keils-iMac:bin keiljr$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
Keils-iMac:bin keiljr$ cd subl
Keils-iMac:subl keiljr$ ls
subl
Keils-iMac:subl keiljr$ subl --help
-bash: subl: command not found
I've tried creating new terminal sessions, and even logging out and back in.
Thanks,
Keil