Session.set_environment
Behavior: Environment.
Source and package
-
Description#
Behavior contract: Environment.
tmux command#
The tmux commands behind set_environment.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Set a variable in a session's environment
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | session |
| Rust | session |
| Go | tmux |
| Java | no equivalent on Session |
| C# | no equivalent on Session |
| C++ | no equivalent on Session |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib Pass an explicit session ID. Empty text and zero-like text remain values. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.