# types.RespawnOptions

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/types.ts#L520
- **Page:** https://libtmux.org/en/ts/latest/reference/types-respawnoptions/

Whether a pane whose process is still alive may be restarted.

Without it tmux refuses rather than killing what is running.

## Members

### Other members

- [`environment`](/en/ts/latest/reference/types-respawnoptions-environment/) (property): Variables to set in the respawned process, tmux's `-e`.
- [`kill`](/en/ts/latest/reference/types-respawnoptions-kill/) (property): Replace a target that is still running rather than only a dead one.
- [`startDirectory`](/en/ts/latest/reference/types-respawnoptions-startdirectory/) (property)
