简体   繁体   中英

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:

在此处输入图像描述

What am I missing?

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)

If you installed git using scoop, you can use C:\Users\xxxxx\scoop\apps\git\current\bin\bash.exe as command line

Select git-cmd instead of git-bash while adding profile in terminal

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM