I would love to be able to have my tmux window title automatically renamed to prompt_command, ps1 or just the hostname of a machine I ssh to. having 9 windows opened labeled "ssh" is really useless. Doing sysadmin work I open new screens and ssh around to much to manually rename them.
One thing I noticed is tmux updates the xterm window title so I feel like it has to know.
Any help? I would even be willing to go back to screen if I could get this feature.
-t${TMUX_PANE}is necessary (at least it wasn't for me). – Christopher Dec 05 '12 at 17:03sleep 3and switch windows, the prompt would otherwise issue the command to the wrong window when sleep completes. (This is the reason I came here, +1). – quornian Apr 02 '13 at 02:04