Skip to content

Instantly share code, notes, and snippets.

@rodrigoea
Last active June 7, 2016 21:52
Show Gist options
  • Save rodrigoea/3a93c31d6de4416b65da to your computer and use it in GitHub Desktop.
Save rodrigoea/3a93c31d6de4416b65da to your computer and use it in GitHub Desktop.
Open a file in Sublime Text via Terminal (osx)
  • Open terminal, paste the line below and press enter:

Sublime

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Atom

ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom

  • Quit Terminal and restart it.

  • Type subl filename.html to open the desired file in Sublime Text!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment