Skip to content

Instantly share code, notes, and snippets.

@jadaradix
Last active January 25, 2022 05:22
Show Gist options
  • Save jadaradix/8fbfb52a942fe31b7354 to your computer and use it in GitHub Desktop.
Save jadaradix/8fbfb52a942fe31b7354 to your computer and use it in GitHub Desktop.
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;
@jadaradix
Copy link
Author

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

Updated!

@Laura1401
Copy link

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

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

literally struggled for 28000 years, thanks so much

@siyadjawad
Copy link

You saved me, I love you.

@BrianaCamp
Copy link

Annnnnd you saved me, too. Thank you!

@rebeccabartels
Copy link

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

Thanks a lot!!

@bobo2smart
Copy link

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

@gameover7
Copy link

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

Bless up thank you my brotha

@poojakec
Copy link

Thank you soooo much!!

@johndiginee
Copy link

Thanks a lot!

@diegoslva
Copy link

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