Tab title not getting set appropriately #3729

Closed
opened 2026-01-30 23:28:38 +00:00 by claunia · 3 comments
Owner

Originally created by @LarsBehl on GitHub (Sep 3, 2019).

Environment

Windows build number: 10.0.18362.295
Windows Terminal version: 0.4.2382.0

Other Software: WSL1 Ubuntu 18.04

Steps to reproduce

Open Windows Terminal. Open new Ubuntu tab.

Expected behavior

Tab title should be the profile name

Actual behavior

Tab title still shows current directory.
tabTitle

Note

I did also try to change the title via the settings, but it had no effect.
profiles.txt

Originally created by @LarsBehl on GitHub (Sep 3, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18362.295 Windows Terminal version: 0.4.2382.0 Other Software: WSL1 Ubuntu 18.04 ``` # Steps to reproduce Open Windows Terminal. Open new Ubuntu tab. # Expected behavior Tab title should be the profile name <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior Tab title still shows current directory. ![tabTitle](https://user-images.githubusercontent.com/26459044/64196166-88a40900-ce83-11e9-9d99-108ab479d492.PNG) # Note I did also try to change the title via the settings, but it had no effect. [profiles.txt](https://github.com/microsoft/terminal/files/3570781/profiles.txt) <!-- What's actually happening? -->
claunia added the Resolution-By-DesignNeeds-Tag-Fix labels 2026-01-30 23:28:38 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Sep 3, 2019):

From our blog post:

👉 Note: The shell title is overridden in WSL distributions because the default shell configuration in many distros sets the window title before every prompt. You can change this behavior in your bash or ZSH profiles in /etc.

@DHowett-MSFT commented on GitHub (Sep 3, 2019): From our blog post: > 👉 Note: The shell title is overridden in WSL distributions because the default shell configuration in many distros sets the window title before every prompt. You can change this behavior in your bash or ZSH profiles in /etc.
Author
Owner

@jj10133 commented on GitHub (Sep 12, 2019):

It does show the title bar for like some while that is may be 2 seconds then it changes and show the path for user profile

@jj10133 commented on GitHub (Sep 12, 2019): It does show the title bar for like some while that is may be 2 seconds then it changes and show the path for user profile
Author
Owner

@zadjii-msft commented on GitHub (Sep 12, 2019):

@nishp77 yep, that's just how bash works. bash sets the title bar in the prompt with the line

 PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"

If you comment out that line, the profile name will remain, but note that another application could change it at any time.

@zadjii-msft commented on GitHub (Sep 12, 2019): @nishp77 yep, that's just how bash works. bash sets the title bar in the prompt with the line ```sh PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ``` If you comment out that line, the profile name will remain, but note that another application could change it at any time.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3729