Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to get sublime text to run from the command line using this tutorial.

It says to run this command:

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

But when I try to run that command I get an error "no such file or directory." Sublime text 2 is in my applications folder -- but it looks like there is no bin folder in my home directory. Do I need to create one? Is this something that should be there? Am I doing something wrong?

share|improve this question

1 Answer 1

Yes simply create the ~/bin directory and then create the link. I doubt it should be there, but it's generally a best practice on Unix systems to create a ~/bin to maintain extraneous executables that you'd like to use within your personal environment.

Additionally you'll need to make sure that this directory is also on your PATH (echo $PATH) so that you can execute this command from any location on your system, without have to explicitly call it out as:

$ ~/bin/subl
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.