libtmux Reference MCP Search
On this page

window.Window.setHook

View as Markdown

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

Bind a tmux command to a window-scoped hook.

Examples

await window.setHook("window-renamed", "display-message 'renamed'");

0 declared, 0 inherited

Esc

Type to search.