# tmux_command:respawn_spec/0

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_command.erl#L81
- **Page:** https://libtmux.org/en/erlang/latest/reference/t-tmux_command-respawn_spec-0/

```
-type respawn_spec() ::
          previous |
          #{argv := [binary(), ...]} |
          #{shell := binary()}.
```

Reuse tmux's saved command/shell, or replace it with argv or a shell command. Used by `tmux_pane:respawn/2` and `tmux_window:respawn/2`.
