问题
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