# libtmux.common.EnvironmentMixin

- **Module:** libtmux.common
- **Package:** libtmux
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/common.py#L54
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-common-environmentmixin/

Mixin for manager session and server level environment variables in tmux.

## Members

### Other members

- [`cmd`](/en/py/stable/reference/libtmux-common-environmentmixin-cmd/) (attribute)
- [`getenv`](/en/py/stable/reference/libtmux-common-environmentmixin-getenv/) (method): Show environment variable ``$ tmux show-environment -t [session] <name>``.
- [`remove_environment`](/en/py/stable/reference/libtmux-common-environmentmixin-remove_environment/) (method): Remove environment variable ``$ tmux set-environment -r <name>``.
- [`set_environment`](/en/py/stable/reference/libtmux-common-environmentmixin-set_environment/) (method): Set environment ``$ tmux set-environment <name> <value>``.
- [`show_environment`](/en/py/stable/reference/libtmux-common-environmentmixin-show_environment/) (method): Show environment ``$ tmux show-environment -t [session]``.
- [`unset_environment`](/en/py/stable/reference/libtmux-common-environmentmixin-unset_environment/) (method): Unset environment variable ``$ tmux set-environment -u <name>``.
- [`__init__`](/en/py/stable/reference/libtmux-common-environmentmixin-__init__/) (method)
- [`_add_option`](/en/py/stable/reference/libtmux-common-environmentmixin-_add_option/) (attribute)
