Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

session.Session.set_environment

Rust

View as Markdown

Module
session
Declared in
Session
Package
libtmux
Source
crates/libtmux/src/session/settings.rs
Other languages
PythonTypeScriptGo Java .NET C++ Swift
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

In other ports Set a variable in a session's environment

0 declared, 0 inherited

Esc

Type to search.