libtmux Reference MCP Search
On this page

session.Session.showHooks

View as Markdown

Module
session
Declared in
Session
Package
@libtmux/libtmux
Source
packages/libtmux/src/session.ts
showHooks ( ) Promise<ReadonlyMap<string, readonly string[]>>
method [source]
method [source]
showHooks

Every hook this session reports.

A hook is an array of commands, keyed by the name setHook takes, so what was set reads back under the name it was set with. tmux prints each element as name[0], which composes with neither of the writers.

Examples

const hooks = await session.showHooks();
hooks.get("window-linked")?.[0];

0 declared, 0 inherited

Esc

Type to search.