Friday 13 October 2017

Sublime Text 2 / Windows: launch from command line?


How could one invoke Sublime Text from the command line, so that it starts in the current folder? (I'm using the MINGW32 that comes with Git on Windows)



Answer



One solution might be to make an alias to fire up sublime to edit a file:


alias edit='c:/Program\ Files/sublime\ text\ 2/sublime_text.exe -w'

So one can do something like:


cd c:/repos/test/
edit test.html

Sublime should open up, and after save+close it should go back to the command prompt.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...