Skip to content

Instantly share code, notes, and snippets.

@AHaymond
Created February 22, 2012 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AHaymond/1885887 to your computer and use it in GitHub Desktop.
Save AHaymond/1885887 to your computer and use it in GitHub Desktop.
Set up sublime text for command line operation Mac OS X
Run this command in your terminal to add command line functionality for Sublime Text.
ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl ~/usr/local/bin/subl
This will create a symlink to the command line tool using your /usr/local/bin directory which should be in your PATH environment variable by default.
Once you create the symlink you can now open any text file by typing "subl textfile.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment