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