首页 > 解决方案 > Git Bash 选项卡在 Windows 终端上显示路径而不是标题“Git Bash”

问题描述

我刚刚在我的 Windows 终端中配置了 Git Bash,但标题选项卡显示了终端打开的路径,我希望它只显示标题 Git Bash。帮助将不胜感激。

这是屏幕截图

截屏

第一个选项卡是 Git Bash,而第二个是 Powershell。我希望第一个选项卡像第二个一样显示标题Git Bash 。

这是我的 Windows 终端的设置

{
    "guid": "{abc00000-0000-0000-0000-000000000000}",
    "name": "Git Bash",
    "commandline": "%PROGRAMFILES%\\Git\\bin\\bash.exe",
    "icon": "%PROGRAMFILES%\\Git\\mingw64\\share\\git\\git-for-windows.ico",
    "hidden": false
}

标签: git-bashwindows-terminal

解决方案


您可以使用 中的tabTitle属性settings.json

将此行添加到您的“Git Bash”配置文件中。 "tabTitle": "Git Bash",


推荐阅读