summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2015-07-13 13:36:29 +0000
committernicm <nicm>2015-07-13 13:36:29 +0000
commit6308c48efd7a80dad5701721f76b9aafb9b814f8 (patch)
tree754ef9a583bd197a598ee9a187c3f3e90e8e7408 /tmux.1
parentcc768d77ec89c43e5770588b36d584d5d18104d3 (diff)
Add a -s flag to show-environment to output Bourne shell commands a la
ssh-agent. Mostly from Cam Hutchison with some changes by me.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.15
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index f0dd569a..db5f314e 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3542,7 +3542,7 @@ flag unsets a variable.
indicates the variable is to be removed from the environment before starting a
new process.
.It Xo Ic show-environment
-.Op Fl g
+.Op Fl gs
.Op Fl t Ar target-session
.Op Ar variable
.Xc
@@ -3556,6 +3556,9 @@ If
is omitted, all variables are shown.
Variables removed from the environment are prefixed with
.Ql - .
+If
+.Fl s
+is used, the output is formatted as a set of Bourne shell commands.
.El
.Sh STATUS LINE
.Nm