# types.SpawnOptions.environment

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/types.ts#L564
- **Page:** https://libtmux.org/en/ts/latest/reference/types-spawnoptions-environment/

Variables added to the program's environment. They reach tmux as command arguments, which `ps` on this machine shows while the command runs; pass a secret through [`input`](/en/ts/latest/reference/types-spawnoptions-input/) instead. tmux replaces a `PATH` passed that way with its client's, so the wrapper sets this one itself before finding `argv[0]`.
