full-path Use full current PATH variable where DIRECTORY Use specified DIRECTORY as working defterm | -mintty | -conemu Set terminal type mingw32 | -mingw64 | -ucrt64 | -clang64 | -msys Set shell type It uses msys2_shell.cmd instead of run the shell manually. MSYS2 has their own guide to add MSYS2 to Windows Terminal. Is there any convenient way to get an MSYS shell running inside a Windows Terminal? "commandline": "cmd /c path/to/msys2_shell.cmd" "commandline": "cmd path/to/msys2_shell.cmd" I've also tried, with little optimism and no success (they all produce the same result as above), the following things: "commandline": "cmd path/to/sh.exe" I guess what's going on here is that the MSYS sh.exe is just expecting to interact via stdin and stdout, whereas an executable suitable for running directly from WT needs to understand the rather complicated Microsoft console APIs, or something like that. The thing you run to get an MSYS2 prompt is a Windows executable instead of a batch script as in traditional MSYS, but it too launches its own sh.exe. (Starting in C:\WINDOWS\System32.) Duh, not-alas, yes: if I do this then it basically does work, but this gets wrong a couple of details that the accepted answer gets right. Alas, no: if I do this and ask WT for a terminal of that type, I get a plain old cmd prompt instead. You might therefore think that making a new profile in WT's profiles.json, with "commandline": "path\to\sh.exe", would do the trick. Traditional MSYS has a Windows batch script that arranges to execute sh.exe inside whatever terminal it's being run from. (Either traditional MSYS or MSYS2.) Is there a way to run the shell for either of these inside the new Windows Terminal? My employer's standard setup for software development on Windows involves using MSYS. I'm accepting the answer that basically says that, but maybe in fact the question should be deleted. The answer to my actual question is "yes, you just do the obvious thing and it works, if you aren't a moron". It turns out that the actual problem here was a brainless typo I had made.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |