I tried to integrate MSYS2 shell into Visual studio Code integrated terminal. Here's my user settings:
{
"terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": ["--login", "-i"]
}
However, I ran into a problem where --login
changes the current working directory to Windows home. I want the current directory to be at the root of my workspace.
My further attempt was I tried add a flag -c 'cd ${workspaceRoot}'
. However, the bash would crashed on start. I could properly get to current directory by removing --login
, but without login mode, all other shell command (ls
, cd
, etc) are not available.
How do I properly integrate MSYS2 shell into my vscode?
terminal.integrated.shell.windows
is pointing toterminal.integrated.profiles.windows
. – Somber