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

Rust API

Rust documentation

server.Server.hide_environment

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
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.