libtmux Reference MCP Search
On this page

tmux.IfShellRequest

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_exec.go
struct tmux.IfShellRequest
struct [source]
struct [source]
struct 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.

5 declared, 0 inherited

Members

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

Type to search.