libtmux Reference MCP Search
On this page

server.Server.showHooks

View as Markdown

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

Every global hook tmux currently 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 server.showHooks();
hooks.get("session-created")?.[0];

0 declared, 0 inherited

Esc

Type to search.