# libtmux.common.EnvironmentMixin.show_environment

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

```
libtmux.common.EnvironmentMixin.show_environment(
    self,
) -> dict[str, bool | str]
```

Show environment [`$ tmux show-environment -t [session]`](/en/tmux/latest/manual/show-environment/).

Return dict of environment variables for the session.

## Changed

0.13 — Removed per-item lookups. Use :meth:`libtmux.common.EnvironmentMixin.getenv`.

## Returns

dict
    environmental variables in dict, if no name, or str if name
    entered.
