Adam Zerner
Adam Zerner

Reputation: 19198

Trouble installing Sublime command line tools

I followed the advice of this blog post and it didn't work. Below is my output. What can I do to fix this?

~/code/rails/adam $ echo "export PATH=~/bin:$PATH" >> ~/.profile
~/code/rails/adam $ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
ln: /Users/adamzerner/bin/subl: No such file or directory

New output:

~/code/rails/adam $ mkdir ~/bin
~/code/rails/adam $ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
~/code/rails/adam $ subl
-bash: subl: command not found
~/code/rails/adam $ subl --help
-bash: subl: command not found
~/code/rails/adam $

Upvotes: 0

Views: 110

Answers (1)

MattDMo
MattDMo

Reputation: 102852

You need to have a ~/bin directory before you can create a symlink in it. Run

mkdir ~/bin

then

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

and you should be all set.

Upvotes: 1

Related Questions