# tmux.Server.ShowEnvironment

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/environment.go#L108
- **Page:** https://libtmux.org/reference/go/tmux-server-showenvironment/

```
tmux.Server.ShowEnvironment(ctx: context.Context) -> (map[string]EnvironmentValue, error)
```

ShowEnvironment returns an owned server-global non-hidden tmux environment. Completed command failures return an empty map unless strict errors are enabled. Externally injected multiline entries return ErrMalformedEnvironment because tmux's multi-entry output does not frame continuation lines. Decode errors are compatible with [ErrMalformedEnvironment] and return no partial map.
