From 516f6099fc2e928587e573176cd753ce3de5806b Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 12 Mar 2020 13:25:45 +0000 Subject: Add a -d flag to run-shell to wait for delay before running the command, also allow run-shell to accept no command to just delay. --- tmux.1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index ac6d4260..d6024ac1 100644 --- a/tmux.1 +++ b/tmux.1 @@ -5202,8 +5202,9 @@ Lock each client individually by running the command specified by the option. .It Xo Ic run-shell .Op Fl b +.Op Fl d Ar delay .Op Fl t Ar target-pane -.Ar shell-command +.Ar [shell-command] .Xc .D1 (alias: Ic run ) Execute @@ -5216,8 +5217,12 @@ section. With .Fl b , the command is run in the background. -After it finishes, any output to stdout is displayed in copy mode (in the pane -specified by +.Fl d +waits for +.Ar delay +seconds before starting the command. +After the command finishes, any output to stdout is displayed in view mode (in +the pane specified by .Fl t or the current pane if omitted). If the command doesn't return success, the exit status is also displayed. -- cgit