【问题标题】:How to set mintty.exe as the default terminal on Windows?如何将 mintty.exe 设置为 Windows 上的默认终端?
【发布时间】:2017-12-20 20:33:30
【问题描述】:

我正在尝试将Cygwin 安装的https://github.com/mintty/mintty 终端设置为默认的Visual Studio Code 终端:

"terminal.integrated.shell.windows": "D:\\Cygwin\\bin\\mintty.exe",

但它会在新窗口中打开Mintty.exe 终端,而不是将其显示为嵌入式控制台。


我发现的相关主题:

  1. How to change the integrated terminal in visual studio code or VSCode
  2. How to Integrate babun shell in VS code
  3. Is it possible to configure Babun/ZSH for the integrated terminal on Windows?
  4. How to integrate terminal whth babun on windows?

【问题讨论】:

    标签: visual-studio-code mintty


    【解决方案1】:

    你应该使用 "D:\\Cygwin\\bin\\bash.exe" 而不是 mintty

    干杯。

    【讨论】:

    • 这会改变外壳,而不是终端。
    【解决方案2】:

    有两个终端设置,你可能想这样设置:

    "terminal.external.windowsExec": "D:\\cygwin64\\bin\\mintty.exe",
    "terminal.integrated.shell.windows": "D:\\cygwin64\\bin\\bash.exe",
    

    【讨论】: