Skip to content

Instantly share code, notes, and snippets.

@gwmccubbin
Forked from vanderlin/Sublime Text 3 Command
Created April 21, 2022 13:17
Show Gist options
  • Save gwmccubbin/16c4fdd1565f4cad22c1c523921e4dae to your computer and use it in GitHub Desktop.
Save gwmccubbin/16c4fdd1565f4cad22c1c523921e4dae to your computer and use it in GitHub Desktop.
Create a Sublime Text 3 symbolic link to open a file via command line. paste this into terminal and now you can run `subl .` to open the directory in sublime or `subl file.html`
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@JahnShelb
Copy link

Use the password you use to sign into your Laptop. Should work

@dtpassarelli
Copy link

It looks like the sudo worked but when I entered the subl . it says zsh: command not found: subl

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