Add -e for new-session to set environment variables.

This commit is contained in:
nicm
2020-05-16 15:25:24 +00:00
parent 78595457f9
commit edeb81ba9e
2 changed files with 17 additions and 5 deletions

6
tmux.1
View File

@ -1094,6 +1094,7 @@ Lock all clients attached to
.It Xo Ic new-session
.Op Fl AdDEPX
.Op Fl c Ar start-directory
.Op Fl e Ar environment
.Op Fl F Ar format
.Op Fl n Ar window-name
.Op Fl s Ar session-name
@ -1200,6 +1201,11 @@ If
is used, the
.Ic update-environment
option will not be applied.
.Fl e
takes the form
.Ql VARIABLE=value
and sets an environment variable for the newly created session; it may be
specified multiple times.
.It Xo Ic refresh-client
.Op Fl cDlLRSU
.Op Fl C Ar XxY