Reset status bar tmux after exiting an ssh connection started within a tmux window

Viewed 22

I tried many things but tmux seems to be very stubborn on this one.

When I start a tmux session in bash it shows

0:bash*

in my status bar. Then when I ssh to a server it gives me

0:user@server:~*

When I then exit the ssh session, the status bar does not revert to the previous

0:bash*, it just keeps the 0:user@server:~*

which is annoying to me. I checked the man page, searched the internets, but hope the hive mind can assist me here.

This is all I have in my .tmux.conf,

set -g mouse on
set -g default-terminal "screen-256color"

tmux -V outputs tmux 2.6

0 Answers
Related