Force update for tmux status bar

Set the status inverval so that it is updated every second:

tmux set status-interval 1

You could also use

tmux refresh-client -S

to manually refresh the status bar instead of relying on the refresh interval. I use it as an event driven update method, for instance when switching panes. In my .tmux.conf I changed the following:

bind -r k select-pane -U
bind -r j select-pane -D
bind -r l select-pane -R
bind -r h select-pane -L

to:

bind -r k select-pane -U\; refresh-client -S
bind -r j select-pane -D\; refresh-client -S
bind -r l select-pane -R\; refresh-client -S
bind -r h select-pane -L\; refresh-client -S

ps: In case it makes a difference, I'm using tmux 1.8 at the moment.

Tags:

Tmux