summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2023-08-23 08:40:25 +0000
committernicm <nicm>2023-08-23 08:40:25 +0000
commit71d453f169ffac345db3e4c82f4409fc41091002 (patch)
tree792c9a8b40c8d71bcd183ff72f3fac4114a64074 /tmux.1
parent52084b2948032db4de728f4fc690760345a40ef2 (diff)
Add -c to run-shell to set working directory, from someone in GitHub
issue 3661.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.15
1 files changed, 5 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 7836e5f5..3228556c 100644
--- a/tmux.1
+++ b/tmux.1
@@ -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