libtmux Reference MCP Search
On this page

server.Server.ifShell

View as Markdown

Module
server
Declared in
Server
Package
@libtmux/libtmux
Source
packages/libtmux/src/server.ts
ifShell ( condition : : string , command : : string , options : : IfShellOptions ) Promise<void>
method [source]
method [source]
ifShell

Run one command or another depending on a condition.

Examples

await server.ifShell("test -d /tmp", "display-message 'present'");

0 declared, 0 inherited

Esc

Type to search.