session.Session.set_environment
Rust
- Python
- TypeScript
- Rust
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Module
- session
- Declared in
- Session
- Package
- libtmux
- Source
- crates/libtmux/src/session/settings.rs
- Other languages
- PythonTypeScriptGo Java .NET C++ Swift
-
-
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
- Python
libtmux.Session.set_environment - TypeScript
session.Session.setEnvironment - Go
tmux.Session.SetEnvironment - Java no equivalent on
Session - .NET no equivalent on
Session - C++ no equivalent on
Session - Swift
Server.setEnvironment(_:to:in:)
- Python
0 declared, 0 inherited