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.
This commit is contained in:
nicm
2015-07-13 13:36:29 +00:00
parent cc768d77ec
commit 6308c48efd
2 changed files with 57 additions and 16 deletions

5
tmux.1
View File

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