# session.NewWindowOptions.environment

- **Module:** session.NewWindowOptions
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/session.rs#L1092
- **Page:** https://libtmux.org/reference/rs/session-newwindowoptions-environment/

```
session.NewWindowOptions.environment(mut, name: impl Into<OsString>, value: impl Into<OsString>) -> Self
```

Set an environment variable for the process the new window starts.

Call this more than once for more than one variable. tmux applies
these to the new process only, not to the session.
