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
| Flag | Description |
|---|---|
| -p | Print to stdout instead of status line |
| -d delay | Time in milliseconds to display (0 = indefinitely) |
| -a | List 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 -aDefault 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