Last Updated: February 25, 2016
·
6.845K
· lukasz-madon

Using sublime with oh my zsh

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 $@'

1 Response
Add your response

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!

over 1 year ago ·