# types.NewWindowOptions

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L116
- **Page:** https://libtmux.org/en/ts/latest/reference/types-newwindowoptions/

Where a new window lands, and what runs in it.

tmux moves existing windows up to make room when a direction is given, so
an index a caller is holding can change.

## Members

- `environment` (property): Variables to set in the process this starts, tmux's `-e`.
- `direction` (property): Place the window before or after the session's current window.
- `name` (property): The window's name.
- `shellCommand` (property): A command for tmux to run in place of the default shell.
- `startDirectory` (property)
