Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fix Sublime's "subl" command on OS X Yosemite.
rm /usr/local/bin/subl;
sudo ln -s "/Applications/Sublime" /usr/local/bin/subl;
Copy link

scottbaron commented Mar 27, 2015

I am grateful for your help this worked for me perfectly. I assume this has something to do with super user beyond the sudo. Thank you again.

Copy link

mikebobadilla commented Jul 7, 2015

thank you sooooo much!

Copy link

marythought commented Jul 9, 2015

Sublime was working just fine until it decided to stop opening files from the terminal. I've been troubleshooting for two hours before finding this, and it worked! Thank you so much.

Copy link

jadaradix commented Sep 19, 2015

I created this on Oct 17, 2014 and I can't work out why you need a root shell now. It seems to work fine without it, so updated. - J

Copy link

jamesmcintyre commented Nov 25, 2015

Worked! Thanks!

Copy link

jadaradix commented Mar 7, 2016

This is why you need a root shell: ln: /usr/local/bin/subl: Permission denied


Copy link

Laura1401 commented Nov 24, 2016

Hey, I know this is an older discussion. But I am quite lost with setting up the subl command. I tried almost everything I could find already and I also tried this. I was able to create the link but if I want to use the command "subl" it says "command not found". Is there anything I am doing wrong? Thanks a lot!

Copy link

cvs2fan commented Jun 4, 2017

Thx seems to work but i dont really understand what is happening is this yoesmite exclusive? what a piece of junk... xDD . BR.

Copy link

supritshah1289 commented Sep 8, 2017

Awesome, it worked!!.
I was having a problem following it up because I was using auto fill command using tab. I noticed that it adds closing quote after auto fill. Keep an eye. Add the closing quote at the end of the first argument.

Copy link

tonymihut commented Oct 8, 2017

literally struggled for 28000 years, thanks so much

Copy link

siyadjawad commented Oct 18, 2017

You saved me, I love you.

Copy link

BrianaCamp commented Oct 21, 2017

Annnnnd you saved me, too. Thank you!

Copy link

rebeccabartels commented Jan 12, 2018

SAVED. Thank you!

Copy link

Youngyi commented Apr 9, 2018

thanks a lot

Copy link

Youngyi commented Apr 9, 2018

MAC air 10.13.3 (17D102) with sublime3, it real work. thanks

Copy link

michaelmccabe commented Apr 15, 2018

sudo ln -s "/Applications/Sublime" /usr/local/bin/sublime
might be more pleasing (although I use 'sub' as the new command)

Copy link

alchemist95 commented Jul 6, 2018

Thanks a lot!!

Copy link

bobo2smart commented Aug 3, 2018

Thank so much...this was a lifesaver. God bless you. You are AWESOME!!!!!!!!

Copy link

gameover7 commented Sep 15, 2018

Worked great for me as well. Had to drop the 3 I was placing after Sublime Text. You have to get that application name exact or it will not work! Thank you.

Copy link

JackyLiu97 commented Mar 4, 2019

Bless up thank you my brotha

Copy link

poojakec commented Apr 29, 2019

Thank you soooo much!!

Copy link

johndiginee commented Jun 24, 2019

Thanks a lot!

Copy link

diegoslva commented Apr 22, 2020


Copy link

GonEbal commented Jan 14, 2021

Worked! Great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment