Session.setEnvironment
Set a variable in this session's environment.
Source and package
-
Examples#
await session.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 a session's environment
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Rust | session |
| Go | tmux |
| Java | no equivalent on Session |
| C# | no equivalent on Session |
| C++ | no equivalent on Session |
| Swift | Server |
No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.