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)?
Best Answer
I'm not sure what version of msysgit you are using, but for me calling
msys.bat
does not change the current directory. If you see the directory being changed, check theetc/profile
file in the msysgit directory forcd
commands. As this file gets executed when a login shell is started it might be the cause for you to always land in your home directory.