Skip to content

Instantly share code, notes, and snippets.

@seafoox
Created April 20, 2012 15:55
Show Gist options
  • Save seafoox/2429878 to your computer and use it in GitHub Desktop.
Save seafoox/2429878 to your computer and use it in GitHub Desktop.
Launch SublimeText2 from the Terminal
## Launch SublimeText2 from the Terminal (on MacOS X) ##
1/ Open Terminal.app
2/ Copy/paste the following symbolic link. You can replace 'subl' at the end with the keyword of your choice
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
3/ Now you can open files and projects directly from the Terminal
- Open the current folder as a project: "subl ."
- Open a file "subl _PATH_/file.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment