# types.IfShellOptions

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

How the condition is decided: by running it, or by expanding it.

By default tmux runs it with `/bin/sh` and reads the exit status. Asked to
treat it as a format instead, tmux expands it and counts it true when the
result is neither empty nor zero — no shell, and no process.

## Members

### Other members

- [`format`](/en/ts/latest/reference/types-ifshelloptions-format/) (property): Treat the condition as a tmux format rather than a shell command.
- [`otherwise`](/en/ts/latest/reference/types-ifshelloptions-otherwise/) (property): Command to run when the condition fails.
- [`target`](/en/ts/latest/reference/types-ifshelloptions-target/) (property)
