diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-04-28 23:02:30 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-04-28 23:02:30 +0100 |
commit | 3ab229da706bc8cffadfa500708937c1e3e84145 (patch) | |
tree | fdd4c60ba6addc019b8d249c5deb3d5d14f92591 /tmux.1 | |
parent | 2cecabd75ecb19e46c221c76f642807869ae63e6 (diff) | |
parent | c4b0da5513ee4c9692f0980408b0da2ee7e3a553 (diff) | |
download | rtmux-3ab229da706bc8cffadfa500708937c1e3e84145.tar.gz rtmux-3ab229da706bc8cffadfa500708937c1e3e84145.tar.bz2 rtmux-3ab229da706bc8cffadfa500708937c1e3e84145.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -1827,6 +1827,7 @@ option. .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 @@ -1866,6 +1867,12 @@ See the .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 @@ -1878,7 +1885,9 @@ for all programs running 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. +start-up files or by the +.Fl e +option. .Pp The .Fl P @@ -2037,8 +2046,9 @@ This command will automatically set .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 c Ar start-directory +.Op Fl e Ar environment .Op Fl t Ar target-pane .Op Ar shell-command .Xc @@ -2054,9 +2064,15 @@ The pane must be already inactive, unless 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 c Ar start-directory .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 @@ -2072,6 +2088,11 @@ The window must be already inactive, unless 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 @@ -2190,6 +2211,7 @@ the command behaves like .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 |