libtmux Reference MCP Search
On this page

server.settings.Server.hide_environment

View as Markdown

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

Hide a variable from processes tmux starts.

Different from Self::unset_environment, which deletes the server's own entry and lets whatever tmux was started with show through. This keeps an entry and marks it, so a process started afterwards is handed an environment with the name *absent* even though the tmux server was started with one. It is what EnvironmentEntry::Removed reports.

Errors

Returns an error when tmux rejects the name.

0 declared, 0 inherited

Esc

Type to search.