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.
This commit is contained in:
nicm
2020-03-12 13:25:45 +00:00
parent 7863445e5d
commit 516f6099fc
2 changed files with 59 additions and 12 deletions

11
tmux.1
View File

@ -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.