Skip to content

Commit 496b583

Browse files
committed
docs(window,session): Document environment variable
1 parent 4244049 commit 496b583

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/libtmux/session.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ def new_window(
229229
When this command exits the window will close. This feature is
230230
useful for long-running processes where the closing of the
231231
window upon completion is desired.
232+
environment: dict, optional
233+
Environmental variables for new window. tmux 3.0+ only. Passthrough to
234+
``-e``.
232235
233236
Returns
234237
-------

src/libtmux/window.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ def split_window(
469469
window upon completion is desired.
470470
percent: int, optional
471471
percentage to occupy with respect to current window
472+
environment: dict, optional
473+
Environmental variables for new pane. tmux 3.0+ only. Passthrough to ``-e``.
472474
473475
Returns
474476
-------

0 commit comments

Comments
 (0)