summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-07-08 06:37:57 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-07-08 06:37:57 +0000
commit2de9b1e005be97c6f1acdd6e24803e01badff52c (patch)
tree50089173bc2ec9010ee0027672c7290c0d26890f /tmux.1
parentb4b3d9c936b9e22eb835dd1d8b65e689fc66fb6c (diff)
Make confirm-before prompt customizable with -p option like
command-prompt. Also move responsibility for calling status_replace into status_prompt_{set,update} and add #W and #P to the default kill-window and kill-pane prompts. By Tiago Cunha.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.111
1 files changed, 11 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 69ea5819..028051e4 100644
--- a/tmux.1
+++ b/tmux.1
@@ -2690,12 +2690,23 @@ to
.Ql %9
.Pc .
.It Xo Ic confirm-before
+.Op Fl p Ar prompt
.Op Fl t Ar target-client
.Ar command
.Xc
.D1 (alias: Ic confirm )
Ask for confirmation before executing
.Ar command .
+If
+.Fl p
+is given,
+.Ar prompt
+is the prompt to display; otherwise a prompt is constructed from
+.Ar command .
+It may contain the special character sequences supported by the
+.Ic status-left
+option.
+.Pp
This command works only from inside
.Nm .
.It Xo Ic display-message