0

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 $ 

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Does it matter which folder I'm in when I run these commands?
No, ~ represents your home folder, so the path are absolute.
@AdamZerner try restarting Terminal.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.