# session.NewWindowOptions.command

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

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

Run a command instead of the default shell.
