# tmux.IfShellRequest

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/server_exec.go#L112
- **Page:** https://libtmux.org/reference/go/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.
