Git Bash in Windows 终端在单独的 window 中打开

Git Bash in Windows Terminal is opening in a separate window

我想将 git bash 添加到 windows 终端,但是,当我在终端中添加新的 git bash 选项卡时git bash 以不同的方式打开 window。

这是我的配置:

{
    "guid": "{--------------------}",
    "acrylicOpacity" : 0.75,
    "closeOnExit" : true,
    "colorScheme" : "Campbell",
    "commandline" : "C:\Users\anonymous\AppData\Local\Programs\Git\git-bash.exe",
    "cursorColor" : "#FFFFFF",
    "cursorShape" : "bar",
    "fontFace" : "Consolas",
    "fontSize" : 10,
    "historySize" : 9001,
    "icon" : "C:\Program Files\Git\mingw64\share\git\git-for-windows.ico",
    "name" : "Git Bash",
    "padding" : "0, 0, 0, 0",
    "snapOnInput" : true,
    "useAcrylic" : true
}

输出:

我错过了什么?

我不知道这是否是正确的解决方案,但我尝试将其更改为在 bin 文件夹中打开 sh.exe,并使用参数 --login,现在可以使用了。

编辑

如评论中所述,bash.exe 也可以。 (bin 文件夹中的任何内容)

Select git-cmd 而不是 git-bash在终端中添加个人资料时

如果您使用 scoop 安装 git,则可以使用 C:\Users\xxxxx\scoop\apps\git\current\bin\bash.exe 作为命令行