Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

tmux.Server.IfShell

Go

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_exec.go
Other languages
Python Ruby Lua TypeScript Rust Java.NET C++ Swift
IfShell ( ctx : context.Context , request : IfShellRequest ) → error
method [source]
method [source]
IfShell

IfShell executes ThenCommand when ShellCommand succeeds and ElseCommand, if present, when it fails. A completed stderr result is an error; cancellation can interrupt delivery without proving that tmux did not execute a branch.

In other ports Run one tmux command or another, on a shell test

0 declared, 0 inherited

Esc

Type to search.