# types.NewSessionOptions

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

What a new session starts as, and what it is grouped with.

A grouped session shares another's window list, so it creates no first
window and the fields describing one are ignored — see `groupWith`.

## Members

- `groupWith` (property): Share another session's windows, tmux's `-t`.
- `environment` (property): Variables to set in the process this starts, tmux's `-e`.
- `height` (property): Rows for the session's first window.
- `name` (property): The session's name, tmux's `-s`.
- `shellCommand` (property): A command for tmux to run in place of the default shell.
- `startDirectory` (property)
- `width` (property): Columns for the session's first window. See `height`.
- `windowName` (property): The first window's name. Same rules as `name`.
