Skip to content
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

window titles not updated with status right #379

Open
dfang opened this issue Jul 30, 2020 · 2 comments
Open

window titles not updated with status right #379

dfang opened this issue Jul 30, 2020 · 2 comments

Comments

@dfang
Copy link

dfang commented Jul 30, 2020

window titles in w, not updated with status right.

when i ssh into a server, the hostname in status right changes to server ip, but window titles in w keep the same.
and exit, the hostname in status right changes back to hostname.

@gpakosz
Copy link
Owner

gpakosz commented Dec 6, 2020

Hello @dfang 👋

It really depends on your setup.

For instance, you can edit your ~/.tmux.conf.local copy and add set -gw allow-rename which will allow the running program to rename the window using terminal escape sequences.

Depending on how your shell is configured, this will allow to rename the window to the target hostname. It seems Oh My Zsh does that.

@logoff
Copy link

logoff commented Aug 17, 2021

I apply this solution with Oh My Zsh and now windows titles are correctly set when ssh'ing remote hosts. Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants