brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: set -g display-time 3000 keeps tmux messages on screen longer

Tmux
~/tips/tip-tmux-display-time

set -g display-time 3000

Sets how long tmux status line messages stay on screen, in milliseconds.

tmux shows short messages in the status line, like the confirmation after a reload or an error from a command. They vanish quickly, and I often miss what they said.

How long they stay is an option, in milliseconds:

set -g display-time 3000

The manual describes display-time as the amount of time for which status line messages and other on-screen indicators are displayed. If it is set to 0, they stay until a key is pressed.

The 0 value helps while you edit your config. Say you have a reload binding that prints a message:

bind r source-file ~/.tmux.conf \; display-message "reloaded"

With display-time 0, both the confirmation and any error from source-file stay on screen until you press a key, so a typo in the config is easy to read. You can try it for one session without touching the file:

tmux set -g display-time 0

The same page has a sibling option, display-panes-time, which sets how long the pane numbers from Ctrl-b q are shown. It is in milliseconds as well, and a duration of zero keeps the indicator until a key is pressed.

The caveat: with 0 every message becomes something you have to dismiss, which gets tedious quickly. A few seconds is a better everyday value, and 0 is for debugging.

Further reading: tmux manual (display-time)

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link