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 Since 0.13 latest

Session.getenv

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

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

Inherited from libtmux.common.EnvironmentMixin

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

tmux command#

The tmux commands behind getenv.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference