Steps to Reproduce:
I found that same instruction somewhere, but it should be:
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe",
Duplicate of #7286.
Yeah, thanks a lot!
As commented in #10054, you can also try the below configuration:
// settings.json
{
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": [
"/k",
"C:\\Program Files\\Git\\bin\\bash.exe"
]
}
@jamiebarrow not worked for me. It seems the shell args not executed.
"terminal.integrated.shell.windows": "C:\\Windows\\system32\\cmd.exe",
"terminal.integrated.shellArgs.windows": [
"/k",
"E:\\Program Files\\Git\\bin\\bash.exe"
]
for every windows 10 users with ubuntu terminal:
"terminal.integrated.shell.windows": "C:\Windows\sysnative\bash.exe"
Thank you.
The solution suggested by @jamiebarrow works for MSYS2 shell too. However when you exit you get to cmd and need to exit again.
My way around was opening the git bash without the cmd using :
"terminal.integrated.shell.windows": "C:\\path_to_your_git_bash",
"terminal.integrated.shellArgs.windows": [
"--command=usr/bin/bash.exe",
"-l",
"-i"
]
It works pretty well and it already loads my bash_profile!
@mdocter thanks but bash.exe doesn't print with colors. For example, ls command returns all the results same color. but git-bash.exe makes the directories blue.
Most helpful comment
As commented in #10054, you can also try the below configuration: