Environment.set
Store literal text without FORMAT or shell expansion; NUL is not representable.
Source and package
- Qualified name
-
LibTmux:: Configuration:: Environment. set - Module
- LibTmux::Configuration
- Declared in
Environment- Package
- LibTmux
- Source
- lib/LibTmux/Configuration.rakumod
- Other languages
- Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGo Java C# C++ Swift Kotlin Scala OCaml F# Clojure
-
Description#
Store literal text without FORMAT or shell expansion; NUL is not representable.
tmux command#
The tmux commands behind set.
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 |
| Lua | libtmux |
| 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#.
Set a variable in a session's environment
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| 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#.