gitgit-bashwindows-terminal

Git Bash in Windows Terminal is opening in a separate window


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:

enter image description here

What am I missing?


Solution

  • 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)