Reputation: 2471
I am trying to get the subl
command work for Sublime Text 3 in the terminal.The problem I currently have is when I
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
It returns
ln: /usr/local/bin/subl: File exists
Upvotes: 4
Views: 4626
Reputation: 102842
If you already have Sublime Text 2 installed and have linked /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
to /usr/local/bin/subl
, you'll just need to change the name of the link for ST3. Try
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl3
instead.
If you don't want to have both versions installed, type sudo rm /usr/local/bin/subl
then try creating the symlink to ST3 again.
Upvotes: 12