Sublime Text subl shortcut not working: ln: /Users/edmundmai/bin/subl: No such file or directory

This probably means that there is no ~/bin directory. Which also probably means that it isn't in the PATH. So just continue on to the next suggestion:

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

Alternatively you can put it to your local bin:

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

it may need creating the bin beforehand:

mkdir /usr/local/bin

Another approach is define subl as your shell alias

http://opensourcehacker.com/2012/05/11/sublime-text-2-tips-for-python-and-web-developers/#Open_files_from_command-line

This is the recommended approach as it is against the best practices to add symlinks in /usr/bin

Tags:

Sublimetext2