user1850254
user1850254

Reputation: 2471

Getting SublimeText to run from terminal in Mac OS X

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

Answers (1)

MattDMo
MattDMo

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

Related Questions