Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to have the current time in my tmux status line. I got as far as:

$ tmux set status-right '"#22T" %H:%M:%S %d-%b-%y'

This does alter the time in the status line to include seconds. However, the status line is only updated if "something happens": I switch windows, switch panes, etc. How can I configure tmux to update the status-line every second, so that I can have a running clock?

share|improve this question
up vote 4 down vote accepted

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


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.

share|improve this answer

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

tmux set status-interval 1
share|improve this answer
But remember about CPU usage and battery life on a OSX Mavericks… – vrybas Mar 1 '14 at 3:16

There are better answers more applicable to my problem on this question on Unix.SE.


Try renaming window 4

  • Switch to window 4 ctrl + b 4
  • Rename window:

You can rename the window this way,

  • Control+b :rename-window myNewname
  • Control+b , Control+u myNewname
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.