Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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)
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:
Sublime should open up, and after save+close it should go back to the command prompt.
-w or --wait: Wait for the files to be closed before returning