Skip to content

Instantly share code, notes, and snippets.

@jamen
Last active May 30, 2019 10:45
Show Gist options
  • Save jamen/7dec52c16f5705ed77d32273ef5b4a69 to your computer and use it in GitHub Desktop.
Save jamen/7dec52c16f5705ed77d32273ef5b4a69 to your computer and use it in GitHub Desktop.
Use MSYS2 inside VSCode's terminal

Use MSYS2 inside VSCode's terminal

{
    "terminal.integrated.shell.windows": "C:\\msys64\\msys2_shell.cmd",
    "terminal.integrated.shellArgs.windows": [
        "-defterm",
        "-no-start",
        "-use-full-path",
        "-mingw",
        "-here"
    ]
}
  • -defterm and -no-start prevent MSYS2 from using another terminal instead of VSCode.
  • -use-full-path allows you to use Windows executables (like Nodejs).
  • -mingw uses MinGW executables instead of MSYS2 (not necessary but maybe good).
  • -here opens the shell at the right directory.

For more info, read C:\msys64\msys2_shell.cmd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment