On this page
server.Server.setHook
- Module
- server
- Declared in
- Server
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/server.ts
- setHook ( name : : string , command : : string , options : : SetHookOptions ) Promise<void>
-
Bind a tmux command to a global hook.
A hook holds a list of commands. Without
appendthis writes the whole list, so it replaces whatever the hook already ran.Examples
await server.setHook("session-created", "display-message 'hello'"); await server.setHook("session-created", "display-message 'and this'", { append: true });
0 declared, 0 inherited