# plan.ops.panes.SplitWindow.environment

- **Module:** plan.ops.panes.SplitWindow
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/plan/ops/panes.rs#L89
- **Page:** https://libtmux.org/en/rs/latest/reference/plan-ops-panes-splitwindow-environment/

```
plan.ops.panes.SplitWindow.environment(mut, name: impl Into<OsString>, value: impl Into<OsString>) -> Self
```

Set a variable in the new pane's environment before it starts.
