Skip to content

Instantly share code, notes, and snippets.

@jadaradix
Last active April 29, 2025 08:13
Show Gist options
  • Select an option

  • Save jadaradix/8fbfb52a942fe31b7354 to your computer and use it in GitHub Desktop.

Select an option

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;
@scottbaron
Copy link
Copy Markdown

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
Copy Markdown

thank you sooooo much!

@marythought
Copy link
Copy Markdown

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
Copy Markdown
Author

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
Copy Markdown

Worked! Thanks!

@jadaradix
Copy link
Copy Markdown
Author

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

Updated!

@Laura1401
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

literally struggled for 28000 years, thanks so much

@siyadjawad
Copy link
Copy Markdown

You saved me, I love you.

@BrianaCamp
Copy link
Copy Markdown

Annnnnd you saved me, too. Thank you!

@beccanelson
Copy link
Copy Markdown

SAVED. Thank you!

@Youngyi
Copy link
Copy Markdown

Youngyi commented Apr 9, 2018

thanks a lot

@Youngyi
Copy link
Copy Markdown

Youngyi commented Apr 9, 2018

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

@michaelmccabe
Copy link
Copy Markdown

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
Copy Markdown

Thanks a lot!!

@bobo2smart
Copy link
Copy Markdown

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

@gameover7
Copy link
Copy Markdown

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
Copy Markdown

Bless up thank you my brotha

@poojakec
Copy link
Copy Markdown

Thank you soooo much!!

@johndiginee
Copy link
Copy Markdown

Thanks a lot!

@diegoslva
Copy link
Copy Markdown

TOP

@GonEbal
Copy link
Copy Markdown

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