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

Python API

Python documentation

libtmux.Session.set_environment

Python

View as Markdown

Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/common.py
Other languages
RubyLuaTypeScriptRustGo Java .NET C++ Swift
set_environment ( self , name : str , value : str , expand_format : bool | None = None , hidden : bool | None = None ) → None
method [source]
method [source]
set_environment

Inherited from libtmux.common.EnvironmentMixin

Set environment $ tmux set-environment <name> <value>.

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

  • value ( str ) – Environment value.

  • expand_format ( bool | None ) – Expand tmux format strings in the value (-F flag). added 0.56

  • hidden ( bool | None ) – Mark the variable as hidden (-h flag). added 0.56

Raises

Discussed in Environment

In other ports Set a variable in a session's environment

0 declared, 0 inherited

Esc

Type to search.