# tmux.IfShellRequest

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_exec.go#L121
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-ifshellrequest/

IfShellRequest configures conditional execution of a tmux command. Its zero value is invalid because ShellCommand and ThenCommand are required; nil ElseCommand omits the failure branch while a pointer to an empty string is explicit.

## Members

- `ShellCommand` (attribute): ShellCommand is the required shell condition executed by tmux.
- `ThenCommand` (attribute): ThenCommand is the required tmux command executed when ShellCommand succeeds.
- `ElseCommand` (attribute): ElseCommand is the optional tmux command executed when ShellCommand fails.
- `Background` (attribute): Background makes tmux schedule the conditional command without waiting.
- `TargetPane` (attribute): TargetPane selects a stable pane target; its zero value omits -t.
