# types.NewSessionOptions

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/types.ts#L64
- **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`](/en/ts/latest/reference/types-newsessionoptions-groupwith/).

## Members

### Other members

- [`environment`](/en/ts/latest/reference/types-newsessionoptions-environment/) (property): Variables to set in the process this starts, tmux's `-e`.
- [`groupWith`](/en/ts/latest/reference/types-newsessionoptions-groupwith/) (property): Share another session's windows, tmux's `-t`.
- [`height`](/en/ts/latest/reference/types-newsessionoptions-height/) (property): Rows for the session's first window.
- [`name`](/en/ts/latest/reference/types-newsessionoptions-name/) (property): The session's name, tmux's `-s`.
- [`shellCommand`](/en/ts/latest/reference/types-newsessionoptions-shellcommand/) (property): A command for tmux to run in place of the default shell.
- [`startDirectory`](/en/ts/latest/reference/types-newsessionoptions-startdirectory/) (property)
- [`width`](/en/ts/latest/reference/types-newsessionoptions-width/) (property): Columns for the session's first window. See `height`.
- [`windowName`](/en/ts/latest/reference/types-newsessionoptions-windowname/) (property): The first window's name. Same rules as `name`.
