Windows Terminal中的Git Bash在单独的窗口中打开 [英] Git Bash in Windows Terminal is opening in a separate window

查看:1078
本文介绍了Windows Terminal中的Git Bash在单独的窗口中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows终端中添加git bash,但是,当我在终端中添加新的git bash选项卡时,git bash在另一个窗口中打开.

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.

这是我的配置:

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

输出:

我想念什么?

推荐答案

我不知道这是否是正确的解决方案,但是我尝试将其更改为打开bin文件夹中的sh.exe,并使用参数--login现在就可以了.

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.

编辑

如评论中所述,bash.exe也可以工作. (bin文件夹中的所有内容)

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

这篇关于Windows Terminal中的Git Bash在单独的窗口中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆