Skip to content

Instantly share code, notes, and snippets.

@zealoushacker
Last active December 31, 2015 19:29
Show Gist options
  • Select an option

  • Save zealoushacker/8033691 to your computer and use it in GitHub Desktop.

Select an option

Save zealoushacker/8033691 to your computer and use it in GitHub Desktop.
sublime alias for your terminal
If you are on a mac, please follow these instructions to get your sublime link set up appropriately.
Run this command if you have sublime text 2:
echo "alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'" >> ~/.bash_profile
Or, if you have sublime text 3, run this command:
echo "alias subl='/Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl'" >> ~/.bash_profile
Restart your terminal.
Try to run subl in your terminal again :)
@whitschrader
Copy link

In the command line I copied and pasted the following into my command line
echo "alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'" >> ~/.bash_profile
but received the error Permission denied. Can you provide any clarification? Thanks!

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