# io.github.libtmux.Shell

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux/src/main/java/io/github/libtmux/Shell.java#L16
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-shell-shell/

A shell command run by tmux, and a tmux command chosen by a shell command's exit status.

tmux expands {@code #(...)} in these strings before a shell sees them. Pass an interpolated
value through {@link TmuxFormats#literal} unless that expansion is what you want.

## Members

### Common operations

- `run` (method): Runs a shell command for its effect. Nothing is claimed about what it printed.
- `choose` (method): Runs one tmux command when a shell command succeeds.
- `capturing` (method): Runs a shell command and answers with what it printed.

### Other members

- `Shell` (method)
