[英]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.我想将 git bash 添加到 windows 终端,但是,当我在终端中添加新的 git bash 选项卡时,git 8831880322 a270889 打开不同的
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: 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.我不知道这是否是正确的解决方案,但我尝试更改它以打开 bin 文件夹中的
sh.exe
,并使用参数--login
并且它现在可以工作。
EDIT编辑
As mentioned in the comments, bash.exe
can also work.正如评论中提到的,
bash.exe
也可以工作。 (Anything in the bin
folder) (
bin
文件夹中的任何内容)
If you installed git using scoop, you can use C:\Users\xxxxx\scoop\apps\git\current\bin\bash.exe
as command line如果您使用 scoop 安装 git,则可以使用
C:\Users\xxxxx\scoop\apps\git\current\bin\bash.exe
作为命令行
Select git-cmd instead of git-bash while adding profile in terminal Select git-cmd而不是git-bash ,同时在终端中添加配置文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.