On this page
session.Session.showHooks
- Module
- session
- Declared in
- Session
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/session.ts
-
Every hook this session reports.
A hook is an array of commands, keyed by the name
setHooktakes, so what was set reads back under the name it was set with. tmux prints each element asname[0], which composes with neither of the writers.Examples
const hooks = await session.showHooks(); hooks.get("window-linked")?.[0];
0 declared, 0 inherited