Skip to content

Instantly share code, notes, and snippets.

@wtsnz
Created January 12, 2014 01:10
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 wtsnz/8379211 to your computer and use it in GitHub Desktop.
Save wtsnz/8379211 to your computer and use it in GitHub Desktop.
Add subl to OSX Terminal Usage open sublime text with the current directory "subl ." open sublime text with the specified directory "subl /path/to/directory" open file in sublime text "subl /path/to/file.txt"
cd ~
mkdir bin
echo "export PATH=~/bin:$PATH" >> ~/.profile
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment