# types.RespawnOptions

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L436
- **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

- `kill` (property): Replace a target that is still running rather than only a dead one.
- `startDirectory` (property)
- `environment` (property): Variables to set in the respawned process, tmux's `-e`.
