9
2
I have MinGW/MSYS on Windows, and can't figure how to start MSYS shell in folder I'm working in.
For example, in Windows console I'm working in folder c:\temp
and if I call MSYS (msys.bat
) it opens new console window in some fixed location, representing my home folder.
How to change this msys.bat
file, so that MSYS shell opens in current working folder (or changes to it, after start)?
Can you include the contents of that batch file in your question? – Karan – 2013-06-13T23:41:43.240
Sure: https://github.com/msysgit/msysgit/blob/master/msys.bat
– zetah – 2013-06-13T23:57:38.6631Unless I missed something I don't see a path being set anywhere in that batch file. My guess is that rxvt/bash are starting up in their default dirs as per their config files. You might be able to pass your current dir (
%cd%
) to them somehow, but I'm not sure. – Karan – 2013-06-14T00:08:47.083Yep, that's what I'm looking for: when calling bash instruct it to change in current working folder under Windows. Cygwin has similar option – zetah – 2013-06-14T00:21:31.700