Skip to content

Instantly share code, notes, and snippets.

@hamzaakhtar953
Last active August 27, 2020 13:28
Show Gist options
  • Save hamzaakhtar953/2e135e5aafca0abdb915931130bb510f to your computer and use it in GitHub Desktop.
Save hamzaakhtar953/2e135e5aafca0abdb915931130bb510f to your computer and use it in GitHub Desktop.
Accessing Sublime from Terminal (Mac)

Accessing Sublime from Terminal (Mac)

1- Check if Sublime is already installed using the following command

/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl

2- Check if /usr/local/bin is in your PATH using echo $PATH

This should output something like /usr/local/bin:/usr/bin:/bin:/usr/sbin

3- Create a symbolic link to Sublime using the command

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

4- Type subl in the terminal and it should open up Sublime

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