Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have followed this super user post to get sublime command line subl command to work in terminal to no avail.

I have the following bash_profile

export PATH="/usr/local/mysql/bin:$PATH"
export PATH=$PATH:~/bin

and my $PATH outputs


I also created a sym-link with the following code

ln -s "/Applications/Sublime Text" ~/bin/subl

However subl command returns command not found

share|improve this question
up vote 5 down vote accepted

Your $PATH doesn't contain ~/bin, which is why it doesn't work. Are you sure the second statement is executed properly?

You can safely create the symlink somewhere else though, e.g. in /usr/local/bin:

sudo ln -s "/Applications/Sublime Text" /usr/bin/subl
share|improve this answer

Your Answer


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.