libtmux Reference MCP Search
On this page

server.settings.Server.environment_all

View as Markdown

Module
server.settings
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/settings.rs
environment_all ( self ) Result<BTreeMap<String, EnvironmentEntry>, Error>
method [source]
method [source]
environment_all

Read the server's whole environment.

Costs one tmux command per variable, for the reason given on [Session::environment_all](crate::Session::environment_all): a value containing a newline occupies more than one line of the listing, and a continuation line holding an = cannot be told from the next variable.

Errors

Returns an error when tmux cannot be reached or refuses the listing. An empty map means the server holds nothing, never that the listing failed.

Discussed in Environment

0 declared, 0 inherited

Esc

Type to search.