libtmux Reference MCP Search
On this page

session.settings.Session.set_environment

View as Markdown

Module
session.settings
Declared in
Session
Package
libtmux
Source
crates/libtmux/src/session/settings.rs
set_environment ( self , name : &str , value : impl Into<OsString> ) Result<(), Error>
method [source]
method [source]
set_environment

Set an environment variable for processes this session starts.

Existing panes keep the environment they were started with; this affects what new panes inherit.

The value is marked sensitive, since an environment carries tokens.

Errors

Returns an error when tmux rejects the name or value.

Discussed in Environment

0 declared, 0 inherited

Esc

Type to search.