libtmux Reference MCP Search
On this page

server.settings.Server.environment

View as Markdown

Module
server.settings
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/settings.rs
environment ( self , name : &str ) Result<Option<EnvironmentEntry>, Error>
method [source]
method [source]
environment

Read one variable from the server's environment.

tmux keeps two different things under a name: a value, and a mark saying a process started from it must not inherit the name at all. [ EnvironmentEntry ] keeps them apart, because collapsing both to absence would hide the second, which a caller sets deliberately with Self::hide_environment.

None means tmux holds nothing under the name.

Errors

Returns an error when tmux cannot be reached.

0 declared, 0 inherited

Esc

Type to search.