Server.set_environment
Source and package
- set_environment: fun( self: libtmux
.Server , name: string, value: string, options?: libtmux.Environment , ):libtmuxSet Options .Request <boolean>
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 the server's environment
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | no equivalent on Server |
| C++ | no equivalent on Server |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib Omit session for the global environment. Missing or explicitly unset values remain failures. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.