如何在 cmd 当前目录上 运行 msys2 控制台?

How can I run msys2 console on cmd current directory?

我安装了 msys2,但我无法在 cmd 当前目录上 运行 msys2 控制台。

例子

命令控制台

cd path/to/mypath
msys2 -mingw64 # not run on path/to/mypath dir runs only its own default path

对不起。不会在cmd konsole中写注释代码

谢谢。

您可以编辑 msys2.inimingw32.inimingw64.ini 并向其中添加此行:

CHERE_INVOKING=1

更多信息在 README of msys2-launcher