Add -c to run-shell to set working directory, from someone in GitHub

issue 3661.
This commit is contained in:
nicm
2023-08-23 08:40:25 +00:00
parent 52084b2948
commit 71d453f169
2 changed files with 14 additions and 5 deletions

5
tmux.1
View File

@ -6639,6 +6639,7 @@ option.
.Tg run
.It Xo Ic run-shell
.Op Fl bC
.Op Fl c Ar start-directory
.Op Fl d Ar delay
.Op Fl t Ar target-pane
.Op Ar shell-command
@ -6666,6 +6667,10 @@ waits for
.Ar delay
seconds before starting the command.
If
.Fl c
is given, the current working directory is set to
.Ar start-directory .
If
.Fl C
is not given, any output to stdout is displayed in view mode (in the pane
specified by