Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rubyandcoffee/bf929fb1744c5163dcd603a25637b687 to your computer and use it in GitHub Desktop.
Save rubyandcoffee/bf929fb1744c5163dcd603a25637b687 to your computer and use it in GitHub Desktop.
Open Files with subl command in terminal
Assume:
1. You have already installed Homebrew.
2. /usr/local/bin is your $PATH.
3. You are on Yosemite or El Capitain.
Solution: At first, run the following script on Terminal app to create specific symlink.
$ ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Then,
$ subl .
Hit return, it should instantly pop-up Sublime app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment