Git Bash in Windows Terminal is opening in a separate window

天大地大妈咪最大 提交于 2020-07-09 06:54:12

问题


I want to add git bash to the windows terminal, however, when I add a new git bash tab in the terminal the git bash opens in a different window.

Here's my configuration:

{
    "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
}

Output:

What am I missing?


回答1:


I don't know if that's the correct solution, but I tried changing it to open the sh.exe in the bin folder, with the argument --login and it works now.

EDIT

As mentioned in the comments, bash.exe can also work. (Anything in the bin folder)



来源:https://stackoverflow.com/questions/61969007/git-bash-in-windows-terminal-is-opening-in-a-separate-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!