strange "tabTitle" shows up when set "commandline" to bash.exe #13984

Closed
opened 2026-01-31 03:57:41 +00:00 by claunia · 2 comments
Owner

Originally created by @DevShashi1993 on GitHub (May 27, 2021).

Windows Terminal version (or Windows build number)

1.7.1033.0

Other Software

Git-2.23.0.windows.1 (64-bit)

Steps to reproduce

Below is the windows terminal config snippet, that I configured for one of my git repo in the settings.json file. I mostly use git bash terminal so, in order to use that here as well, I tried to integrate git bash in the windows terminal using the below config.

{ "guid": "{0cac0dad-34be-5f56-a8ff-afc333ab6101}", "name": "myApp", "commandline" : "C:/Program Files/Git/bin/bash.exe", "startingDirectory" : "C:/Users/ssharma/myApp", "tabTitle": "myApp", "hidden": false, "colorScheme": "Dracula", "fontSize": 9, }

Expected Behavior

The windows terminal tab title bar should display the tab title as configured inside the settings.json file

Actual Behavior

The windows terminal tab title bar displays a very strange text "MINGW64:/c/Users/ssharma/SafetyBot" instead of displaying "myApp" for the respective repo.
terminal-bug

Originally created by @DevShashi1993 on GitHub (May 27, 2021). ### Windows Terminal version (or Windows build number) 1.7.1033.0 ### Other Software Git-2.23.0.windows.1 (64-bit) ### Steps to reproduce Below is the windows terminal config snippet, that I configured for one of my git repo in the settings.json file. I mostly use git bash terminal so, in order to use that here as well, I tried to integrate git bash in the windows terminal using the below config. ` { "guid": "{0cac0dad-34be-5f56-a8ff-afc333ab6101}", "name": "myApp", "commandline" : "C:/Program Files/Git/bin/bash.exe", "startingDirectory" : "C:/Users/ssharma/myApp", "tabTitle": "myApp", "hidden": false, "colorScheme": "Dracula", "fontSize": 9, } ` ### Expected Behavior The windows terminal tab title bar should display the tab title as configured inside the settings.json file ### Actual Behavior The windows terminal tab title bar displays a very strange text "MINGW64:/c/Users/ssharma/SafetyBot" instead of displaying "myApp" for the respective repo. <img width="193" alt="terminal-bug" src="https://user-images.githubusercontent.com/52294535/119822040-da6eab80-bf10-11eb-8110-1a56a9e27b39.png">
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 03:57:41 +00:00
Author
Owner

@KalleOlaviNiemitalo commented on GitHub (May 27, 2021):

That would be the shell changing the tab title as configured in https://github.com/git-for-windows/build-extra/blob/0ade901974c897f7f1b045e36cccc6018e91b296/git-extra/git-prompt.sh#L12.

You can disable that in Windows Terminal. https://docs.microsoft.com/en-us/windows/terminal/tutorials/tab-title

Or you can edit the shell startup scripts to format the title differently.

@KalleOlaviNiemitalo commented on GitHub (May 27, 2021): That would be the shell changing the tab title as configured in <https://github.com/git-for-windows/build-extra/blob/0ade901974c897f7f1b045e36cccc6018e91b296/git-extra/git-prompt.sh#L12>. You can disable that in Windows Terminal. <https://docs.microsoft.com/en-us/windows/terminal/tutorials/tab-title> Or you can edit the shell startup scripts to format the title differently.
Author
Owner

@zadjii-msft commented on GitHub (May 27, 2021):

Yep, that's how it works. Thanks!

@zadjii-msft commented on GitHub (May 27, 2021): Yep, that's how it works. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13984