Skip to content

Instantly share code, notes, and snippets.

Embed
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 Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl;
@scottbaron
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.

@mikebobadilla
Copy link

mikebobadilla commented Jul 7, 2015

thank you sooooo much!

@marythought
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.

@jadaradix
Copy link
Author

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

@jamesmcintyre
Copy link

jamesmcintyre commented Nov 25, 2015

Worked! Thanks!

@jadaradix
Copy link
Author

jadaradix commented Mar 7, 2016

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

Updated!

@Laura1401
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!

@cvs2fan
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.

@supritshah1289
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.

@tonymihut
Copy link

tonymihut commented Oct 8, 2017

literally struggled for 28000 years, thanks so much

@siyadjawad
Copy link

siyadjawad commented Oct 18, 2017

You saved me, I love you.

@BrianaCamp
Copy link

BrianaCamp commented Oct 21, 2017

Annnnnd you saved me, too. Thank you!

@rebeccabartels
Copy link

rebeccabartels commented Jan 12, 2018

SAVED. Thank you!

@Youngyi
Copy link

Youngyi commented Apr 9, 2018

thanks a lot

@Youngyi
Copy link

Youngyi commented Apr 9, 2018

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

@michaelmccabe
Copy link

michaelmccabe commented Apr 15, 2018

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

@alchemist95
Copy link

alchemist95 commented Jul 6, 2018

Thanks a lot!!

@bobo2smart
Copy link

bobo2smart commented Aug 3, 2018

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

@gameover7
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.

@JackyLiu97
Copy link

JackyLiu97 commented Mar 4, 2019

Bless up thank you my brotha

@poojakec
Copy link

poojakec commented Apr 29, 2019

Thank you soooo much!!

@johndiginee
Copy link

johndiginee commented Jun 24, 2019

Thanks a lot!

@diegoslva
Copy link

diegoslva commented Apr 22, 2020

TOP

@GonEbal
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