Skip to main content
Back to Commands
MiscellaneousN/A

display-message

Short form: display

Display a message in the status line. If no message is given, display information about the current pane.

Synopsis

bash
tmux display-message [-aINpv] [-c target-client] [-d delay] [-t target-pane] [message]

Options

FlagDescription
-pPrint to stdout instead of status line
-d delayTime in milliseconds to display (0 = indefinitely)
-aList format variables and their values

Examples

Show message in status line

bash
tmux display-message 'Hello!'

Print current path to stdout

bash
tmux display -p '#{pane_current_path}'

Show all format variables

bash
tmux display -a

Default Keybinding

N/A

Default prefix is Ctrl+b

Pro Tips

  • Useful in scripts to get tmux variables like #{session_name}
  • display -a is helpful for understanding format variables