=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.640 retrieving revision 1.641 diff -c -r1.640 -r1.641 *** src/usr.bin/tmux/tmux.1 2019/04/26 11:38:51 1.640 --- src/usr.bin/tmux/tmux.1 2019/04/28 20:05:50 1.641 *************** *** 1,4 **** ! .\" $OpenBSD: tmux.1,v 1.640 2019/04/26 11:38:51 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" --- 1,4 ---- ! .\" $OpenBSD: tmux.1,v 1.641 2019/04/28 20:05:50 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" *************** *** 14,20 **** .\" 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: April 26 2019 $ .Dt TMUX 1 .Os .Sh NAME --- 14,20 ---- .\" 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: April 28 2019 $ .Dt TMUX 1 .Os .Sh NAME *************** *** 1784,1789 **** --- 1784,1790 ---- .It Xo Ic new-window .Op Fl adkP .Op Fl c Ar start-directory + .Op Fl e Ar environment .Op Fl F Ar format .Op Fl n Ar window-name .Op Fl t Ar target-window *************** *** 1823,1828 **** --- 1824,1835 ---- .Ic remain-on-exit option to change this behaviour. .Pp + .Fl e + takes the form + .Ql VARIABLE=value + and sets an environment variable for the newly created window; it may be + specified multiple times. + .Pp The .Ev TERM environment variable must be set to *************** *** 1835,1841 **** New windows will automatically have .Ql TERM=screen added to their environment, but care must be taken not to reset this in shell ! start-up files. .Pp The .Fl P --- 1842,1850 ---- New windows will automatically have .Ql TERM=screen added to their environment, but care must be taken not to reset this in shell ! start-up files or by the ! .Fl e ! option. .Pp The .Fl P *************** *** 1994,2001 **** .Ic window-size to manual in the window options. .It Xo Ic respawn-pane - .Op Fl c Ar start-directory .Op Fl k .Op Fl t Ar target-pane .Op Ar shell-command .Xc --- 2003,2011 ---- .Ic window-size to manual in the window options. .It Xo Ic respawn-pane .Op Fl k + .Op Fl c Ar start-directory + .Op Fl e Ar environment .Op Fl t Ar target-pane .Op Ar shell-command .Xc *************** *** 2011,2019 **** is given, in which case any existing command is killed. .Fl c specifies a new working directory for the pane. .It Xo Ic respawn-window - .Op Fl c Ar start-directory .Op Fl k .Op Fl t Ar target-window .Op Ar shell-command .Xc --- 2021,2035 ---- is given, in which case any existing command is killed. .Fl c specifies a new working directory for the pane. + The + .Fl e + option has the same meaning as for the + .Ic new-window + command. .It Xo Ic respawn-window .Op Fl k + .Op Fl c Ar start-directory + .Op Fl e Ar environment .Op Fl t Ar target-window .Op Ar shell-command .Xc *************** *** 2029,2034 **** --- 2045,2055 ---- is given, in which case any existing command is killed. .Fl c specifies a new working directory for the window. + The + .Fl e + option has the same meaning as for the + .Ic new-window + command. .It Xo Ic rotate-window .Op Fl DU .Op Fl t Ar target-window *************** *** 2147,2152 **** --- 2168,2174 ---- .It Xo Ic split-window .Op Fl bdfhvP .Op Fl c Ar start-directory + .Op Fl e Ar environment .Oo Fl l .Ar size | .Fl p Ar percentage Oc