Skip to content

Instantly share code, notes, and snippets.

@tsundara
Last active January 30, 2017 01:52
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 tsundara/46b3a8c71c0d4b9372b61d08cab967ce to your computer and use it in GitHub Desktop.
Save tsundara/46b3a8c71c0d4b9372b61d08cab967ce to your computer and use it in GitHub Desktop.
Launch sublime from Mac OS terminal (subl command)

###Opening Sublime from Mac OS terminal/command line

  • Open the $HOME/.bash_profile file on vim or nano.
  • Add the following 2 lines at the bottom. Save it.

export PATH=$PATH:"/Applications/Sublime Text.app/Contents/SharedSupport/bin"
  • Close the current terminal. Open a new terminal and enter the below command(or you can enter : source $HOME./bash_profile).

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