iox0mw
Last Updated: February 25, 2016
·
2.437K
· lukasz-madon
B2bc42f69510d6a1d2c9cde1c2214d24

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 $@'
Say Thanks
Respond

1 Response
Add your response

18223
B3217d3a1e288dc44019b2e1058d2742

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 ·
Filed Under