My settings.json is very simple, it's replacing cmd.exe with sh.exe (from git).
{
"terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\sh.exe"
}
Upon opening the shell, absolutely nothing works. I can't even ls.
sh.exe"-3.1$ ls
sh.exe": ls: command not found
sh.exe"-3.1$ cd ..
sh.exe"-3.1$ ls
sh.exe": ls: command not found
sh.exe"-3.1$
Does VSCode not work with Mingw32 (git's bash)? How do I set it up to work?
So git bash requires two arguments --login and separately -i
Thus the full json needs to look like:
{
"terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": ["--login","-i"]
}
This will cause all commands to work in the integrated terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With