Server.unsetEnvironment(_:in:)
Unsets a variable, leaving no trace of it.
Source and package
- Qualified name
-
Server.unset Environment(_: in:) - Declared in
Server- Package
- libtmux-swift
- Source
- Sources/LibTmux/Environment.swift
- Other languages
- Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGo Java C# C++ Kotlin Scala OCaml F# Clojure
-
Description#
Different from
removeEnvironment(_:in:): an unset variable is simply gone, where a removed one is still listed so that new processes are started without it.
tmux command#
The tmux commands behind unsetEnvironment(_:in:).
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss unsetEnvironment(_:in:).
In other ports#
Unset 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 |
| 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#.
Unset 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 |
| 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#.