Instructions for how to easily open sublime text from the command line, or open files or folders in sublime text from the command line.
Open sublime text from the command line:
$ st
Open a specific file in sublime text from the command line:
$ st foo.txt
Open the current working directory in sublime text from the command line:
$ st .
Add the following alias to your ~/.zshrc
or ~/.bash_profile
or ~/.profile
or whatever config you use:
alias st="open -a /Applications/Sublime\ Text.app"