Home:ALL Converter>Sublime Text 3 'subl' command still linked to Sublime Text 2

Sublime Text 3 'subl' command still linked to Sublime Text 2

Ask Time:2015-01-10T12:57:18         Author:metropolis4

Json Formatter

This is driving me crazy. I'm running OSX and until today I had Sublime Text 2 installed. After installing Sublime Text 3, when I enter the 'subl' command the terminal logs:

Unable to find application named 'Sublime Text 2'

I've tried everything. I've tried

$ rm ~/bin/subl

Then

$ ln -s /Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl ~/bin/subl

I've also tried going in to usr directly and removing the subl command. When I do this, the subl command will sometimes work while I remain in one directory, but once I switch directories it goes back to giving me the message

Unable to find application named 'Sublime Text 2'

With Sublime Text 2 I had subl entered as an alias. I also tried going in and unaliasing subl like this:

unalias subl

And I've tried re-creating the alias using

/Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl

Again, this will work for a while, but once I change directories it stops working.

Any advice on what to try next? I'm at a loss. I can't understand why it works for a while, then stops working.

Author:metropolis4,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27872997/sublime-text-3-subl-command-still-linked-to-sublime-text-2
yy