Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 844
user1850254 Avatar asked Sep 02 '25 15:09

user1850254


1 Answers

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.

like image 113
MattDMo Avatar answered Sep 05 '25 05:09

MattDMo