Tab title not set for Ubuntu windows #16888

Closed
opened 2026-01-31 05:26:09 +00:00 by claunia · 4 comments
Owner

Originally created by @jonathanbyrne on GitHub (Feb 27, 2022).

Windows Terminal version

1.6.10571.0

Windows build number

10.0.22000.527

Other Software

Ubuntu 20.04.3 LTS

Steps to reproduce

  • Renamed Ubuntu profile from the default name to just "Ubuntu"
  • Executed wt new-tab --profile "Ubuntu" --title "My Title" --suppressApplicationTitle from a command prompt

Expected Behavior

I expected to see the tab title as "My Title"

Actual Behavior

The tab title was "My Title" for a fraction of a second and then switched to "jonathanbyrne@DESKTOP-2N2UM3V: /mnt/c/Users/Jonathan Byrne"

Originally created by @jonathanbyrne on GitHub (Feb 27, 2022). ### Windows Terminal version 1.6.10571.0 ### Windows build number 10.0.22000.527 ### Other Software Ubuntu 20.04.3 LTS ### Steps to reproduce - Renamed Ubuntu profile from the default name to just "Ubuntu" - Executed `wt new-tab --profile "Ubuntu" --title "My Title" --suppressApplicationTitle` from a command prompt ### Expected Behavior I expected to see the tab title as "My Title" ### Actual Behavior The tab title was "My Title" for a fraction of a second and then switched to "jonathanbyrne@DESKTOP-2N2UM3V: /mnt/c/Users/Jonathan Byrne"
Author
Owner

@j4james commented on GitHub (Feb 27, 2022):

This is something that's controlled by the bash PS1 environment variable. The default value is setup in your ~/.bashrc file. Regarding the title in particular, look for a line that is something like this:

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

That's what changes the title to show the current directory and user/host name.

Alternatively, there's is an option in the terminal's advanced profile section to suppress title changes. That will prevent all applications from altering the title.

@j4james commented on GitHub (Feb 27, 2022): This is something that's controlled by the bash `PS1` environment variable. The default value is setup in your `~/.bashrc` file. Regarding the title in particular, look for a line that is something like this: PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" That's what changes the title to show the current directory and user/host name. Alternatively, there's is an option in the terminal's advanced profile section to [suppress title changes](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/profile-advanced#suppress-title-changes). That will prevent all applications from altering the title.
Author
Owner

@jonathanbyrne commented on GitHub (Feb 27, 2022):

Thank you! Suppressing the title change int he advanced profile section fixed it for me.

@jonathanbyrne commented on GitHub (Feb 27, 2022): Thank you! Suppressing the title change int he advanced profile section fixed it for me.
Author
Owner

@ianjoneill commented on GitHub (Feb 28, 2022):

The --suppressApplicationTitle command line argument was added in Terminal 1.8. If you upgrade your terminal version (the latest is 1.12) the command line argument should start working.

@ianjoneill commented on GitHub (Feb 28, 2022): The `--suppressApplicationTitle` command line argument was added in Terminal 1.8. If you upgrade your terminal version (the latest is 1.12) the command line argument should start working.
Author
Owner

@jonathanbyrne commented on GitHub (Feb 28, 2022):

That explains it. Thank you!

@jonathanbyrne commented on GitHub (Feb 28, 2022): That explains it. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16888