Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I start an MSYS2 console on cmd in current directory?

Tags:

msys2

I installed MSYS2, but I can't run msys2 console on cmd in current directory.

This is what I tried in cmd console:

cd path/to/mypath
msys2 -mingw64 

The mingw64 console does not run on path/to/mypath directory but in its own default path.

like image 930
Nomad Avatar asked Oct 26 '25 12:10

Nomad


1 Answers

You can edit msys2.ini, mingw32.ini, or mingw64.ini and add this line to it:

CHERE_INVOKING=1

More information is in the README of msys2-launcher.

like image 182
David Grayson Avatar answered Oct 29 '25 09:10

David Grayson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!