summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-07-13 13:36:30 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-07-13 13:36:30 +0000
commitd35c8e742abac47be8a58e904d12429edff33e0c (patch)
tree6e798840dde5f2db0ba066990ed00edf39114099 /usr.bin/tmux/tmux.1
parenta3e63ee012da3bdff38b572d470d0d9656d1f2fc (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 'usr.bin/tmux/tmux.1')
-rw-r--r--usr.bin/tmux/tmux.19
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index edd5115d6ee..2d5502d1148 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.441 2015/06/18 23:53:56 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.442 2015/07/13 13:36:29 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 18 2015 $
+.Dd $Mdocdate: July 13 2015 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -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