# LibTmux::Async::Server#environment

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/operations.rb#L85
- **Public owner:** LibTmux::Server#environment
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-async-server-environment/

```
def environment: (
  ::String,
  ?hidden: bool,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::String?
```

Behavior: Environment.

Behavior contract: Environment.

## Parameters

- `arg1` (`::String`)
- `hidden` (`bool`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## tmux command

The tmux commands behind `environment`.

- [`show-environment`](/en/tmux/latest/manual/show-environment/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_environment_entry`](/en/tmux/latest/reference/c-variable-cmd_show_environment_entry/) (attribute)
- [`cmd_show_environment_exec`](/en/tmux/latest/reference/c-function-cmd-show-environment-c-cmd_show_environment_exec/) (function)
