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

EnvironmentMixin.set_environment

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

Source and package
Qualified name
libtmux.common.EnvironmentMixin.set_environment
Module
libtmux.common
Declared in
EnvironmentMixin
Package
libtmux
Source
src/libtmux/common.py
set_environment ( self, name: str, value: str, expand_format: bool | None = None, hidden: bool | None = None, ) → None
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

tmux command#

The tmux commands behind set_environment.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference