-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clearer tab title for ssh-configurations immediately running a command like tmux, currently it is just OpenSSH SSH client without hostname #17063
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
The indicated closed issues are similar, but not the same. The problems indicated there have been fixed. This issue however has not been fixed yet. |
I found a setting for profiles that is "suppressApplicationTitle", which gives the behaviour I suggested as solution 1. The profile's name will then just be displayed instead of the applicationTitle the process itself returns. However, solution 2 would be better if it is possible to get it to work. It is very weird that the windows openssh client only displays a default applicationTitle once the -t option is used. |
A potential option 3 would be to configure tmux to properly propagate the title from its hosted application up to the terminal emulator! It looks like your shell is configured to emit a title, and that tmux is dropping it. That would also make sure that the title updates when you switch panes inside tmux. |
This comment was marked as spam.
This comment was marked as spam.
That's genious! What a simple fix. Immediately solved my problem - better than that even. Didn't think far enough myself to realise this was the problem. I now just added set -g set-titles on to my tmux conf. Also, I must say that I am impressed by your insanely fast response time! Thank you so much |
see my last comment, that's the solution. |
Description of the new feature/enhancement
It is possible to specify ssh-configurations, so instead of putting e.g. wsl.exe -d ubuntu, one can write ssh user@hostname into the command line field of the configuration to immediately ssh onto a host when a new tab is opened. When the configuration is like that, the tab title looks like this including the hostname (all good):
However, when I change the configuration to ssh user@hostname -t tmux a to immediately attach to a tmux session, I see the following:
This is not very handy, as I can't see which host I am connected to, only that it is through ssh. The behaviour is actually exactly the same if I open a powershell tab, and then run ssh user@hostname -t tmux a, also here the title now is just OpenSSH SSH client. If I only run ssh user@hostname in powershell, I see the hostname in the windowtitle as indicated in the first image.
Proposed technical implementation details (optional)
A simple solution to this would be the ability to manually override the tab title for a configuration. Just always show some fixed text.
The nicer solution would be to actually fix the behaviour of how the hostname is displayed when the ssh-command is run with the -t option in General, so that it also works when I manually run the command in powershell.
But as option 2 most likely is more complicated / probably requires changes in the openssh client or the powershell configuration, solution 1 would be sufficient for now.
The text was updated successfully, but these errors were encountered: