tmux Configuration and Customization/Show host and time on the right

Add useful runtime context to the status line.

Section: Status bar and appearance

Show host and time on the right

tmux
tmux
set -g status-right "#H %Y-%m-%d %H:%M"
Explanation

Tmux supports format variables and time expansion.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Status bar and appearance
Move status bar to top
Place the tmux status line above panes.
OpenIn sheettmuxsame section
Show session name on the left
Customize the left side of the status line.
OpenIn sheettmuxsame section
Show pane titles
Display pane border status lines.
OpenIn sheettmuxsame section
Change prefix to Ctrl-a
Replace the default prefix with a screen-style prefix.
OpenIn sheettmux1 tag match
Renumber windows automatically
Keep window numbers compact after closing windows.
OpenIn sheettmux1 tag match
Enable mouse support
Use mouse selection and pane/window switching.
OpenIn sheettmux1 tag match