server.Server.setHook
TypeScript
- Python
- Ruby Unavailable
- Lua
- TypeScript
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- packages/libtmux/src/server.ts
- Other languages
- Python Ruby LuaRust Go Java .NET C++ Swift
- 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 });In other ports Bind a command to a global hook
- Python
libtmux.Server.set_hook - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
libtmux.Server:set_hook - Rust
server.Server.set_hook - Go no equivalent on
Server - Java reached through
Server.hooks, whoseHookscarries the write - .NET reached through
Server.Hooks, whoseTmuxHookscarries the write - C++ no equivalent on
Server - Swift
Server.setHook(_:to:at:in:)
- Python
0 declared, 0 inherited