How to fix the issue when "subl ." command not ...

Sometimes,if you want to use one editor,for example:Sublime text 2 or textmate,etc.you will hope you can use them in the terminal via use the short cmd.but maybe you will caught the command can not found error.

Now I record the way I am fix the issue that 'subl .' can not be found.

http://www.sublimetext.com/docs/2/osx_command_line.html

https://teamtreehouse.com/forum/ruby-on-rails-subl-command-not-found

If you read these two passages,you can fix it.

Update:

Today I try the way above, but can not fix the issue, at last I have used cmd:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl
use sudo to do it, the issue fixed.

Reference Link:

http://www.kadrmasconcepts.com/blog/2012/02/08/sublime-from-the-command-line/

Thanks,

Blues

你可能感兴趣的:(How to fix the issue when "subl ." command not ...)