Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am unable to open sublime text from the command line in my mac os. Here is what I did so far

    echo $PATH

My path says /usr/local/bin:/usr/local/bin:/usr/local/bin:/Users/sr027976/.rvm/gems/ruby-1.9.3-p374/bin:/Users/sr027976/.rvm/gems/ruby-1.9.3-p374@global/bin:/Users/sr027976/.rvm/rubies/ruby-1.9.3-p374/bin:/Users/sr027976/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

ln \-s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

source ~/.bash_profile

subl .

subl . says command not found.

I am unsure what's wrong here.

share|improve this question

migrated from stackoverflow.com Feb 2 '13 at 11:45

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Does open -a "Sublime Text 2" opens Sublime Text ? If so, can't you just make an alias alias subl='open -a "Sublime Text 2"' ?

(Don't know if aliases works the same on MacOSX)

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.