I had a problem with setting up sublime with zsh. I wanted command that will start the window from terminal.
In your ~/.zshrc_personal file (create if doesn't exists) add
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl --new-window $@'
I know, it's an old post, but maybe useful for someone that will watch.
You can add the sublime plugin in the .zshrc file like that (only if using oh my zsh):
plugins=(sublime)
Then from the shell u can just type:
st // just open sublime text
st filename // opens the file in sublime text
stt //opens the pwd in sublime text
Hope that was useful!