Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

method libtmux Since 0.13 stable

EnvironmentMixin.getenv

Show environment variable $ tmux show-environment -t [session] <name>.

Source and package
Qualified name
libtmux.common.EnvironmentMixin.getenv
Module
libtmux.common
Declared in
EnvironmentMixin
Package
libtmux
Source
src/libtmux/common.py
getenv (self, name: str) → str | bool | None

Description#

Return the value of a specific variable if the name is specified.

Parameters
  • name (str) # – the environment variable name. such as 'PATH'.

Returns

str Value of environment variable

Esc

Type to search.

Reference preview Open reference