Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux latest

Session.unset_environment

Unset environment variable $ tmux set-environment -u <name>.

Source and package
Qualified name
libtmux.Session.unset_environment
Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/common.py
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp RubyLuaTypeScriptRustGo Java C# C++ Swift Kotlin Scala OCaml F# Clojure
unset_environment (self, name: str) → None

Inherited from libtmux.common.EnvironmentMixin

Parameters
  • name (str) # – The environment variable name, e.g. 'PATH'.

Raises

tmux command#

The tmux commands behind unset_environment.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Unset a variable in a session's environment

Equivalents of Unset a variable in a session's environment in other languages
Language Equivalent
Ruby LibTmux::Session#unset_environment
Lua libtmux.Session:unset_environment
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript session.Session.unsetEnvironment
Rust session.Session.unset_environment
Go tmux.Session.UnsetEnvironment
Java no equivalent on Session
C# no equivalent on Session
C++ no equivalent on Session
Swift Server.unsetEnvironment(_:in:)
OCaml Libtmux_unix.Client.unset_environment
Perl LibTmux::Server::unset_environment 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#.

Esc

Type to search.

Reference previewOpen reference