Server.setEnvironment
Set a variable in the server's global environment.
Source and package
-
Examples#
await server.setEnvironment("EDITOR", "vim");
tmux command#
The tmux commands behind setEnvironment.
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss setEnvironment.
In other ports#
Set a variable in the server's environment
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Rust | server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | no equivalent on Server |
| C++ | no equivalent on Server |
| Swift | Server |
No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.