libtmux Reference MCP Search
On this page

pane.Pane.setHook

View as Markdown

Module
pane
Declared in
Pane
Package
@libtmux/libtmux
Source
packages/libtmux/src/pane.ts
setHook ( name : : string , command : : string , options : : SetHookOptions ) Promise<void>
method [source]
method [source]
setHook

Bind a tmux command to a pane-scoped hook.

Examples

await pane.setHook("pane-title-changed", "display-message 'title changed'");

Discussed in Options and hooks

0 declared, 0 inherited

Esc

Type to search.