Sublime Text 2 “subl” command not found

Posted on


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


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

Leave a Reply

Your email address will not be published. Required fields are marked *