Conemu Msys2-64 任務沒有正確的路徑

Conemu Msys2-64 任務沒有正確的路徑

上面ConEmu 161206 [64] {Stable}有一個任務叫它{Bash:Msys2-64}的內容是:

set CHERE_INVOKING=1 & C:\msys64\usr\bin\bash.exe --login -i -new_console:C:"C:\msys64\msys2.ico"

如果我運行這個 conemu 任務並查詢 PATH 我得到:

/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/ v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

如果我使用 64 位元運行 msys2,> msys2_shell.cmd -mingw64我會得到:

/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/ v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

正如您所看到的,由 conemu 任務創建的 PATH 與由(缺少 /mingw64/bin)創建的路徑不匹配msys2_shell.cmd -mingw64,問題是您將無法運行/mingw64/bin.

所以問題是,我如何更改 conemu{Bash:Msys2-64}任務,以便它創建與創建的路徑完全相同的路徑msys2_shell.cmd -mingw64

相關內容