Skip to content

Instantly share code, notes, and snippets.

@mikestone14
Last active July 11, 2018 22:52
Show Gist options
  • Save mikestone14/11193365 to your computer and use it in GitHub Desktop.
Save mikestone14/11193365 to your computer and use it in GitHub Desktop.
Install Sublime Command Line Tool

Install Sublime 'subl' Command Line Tool

Add the following line to your .bash_profile

export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH

This sets the location where you want Terminal to look for binaries on your machine.

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

Set up Sublime as the default editor in your .bash_profile

export EDITOR='subl -w'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment