# plan.ops.options.SetEnvironment

- **Module:** plan.ops.options
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/plan/ops/options.rs#L171
- **Page:** https://libtmux.org/en/rs/latest/reference/plan-ops-options-setenvironment/

Set a variable in a session's environment.

Applied before anything runs in the session, so a command started later
sees the environment the caller described rather than the one tmux
happened to inherit.

## Members

- `new` (method): Set `name` in this session's environment.
