Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Rust API

Rust documentation

server.Server.set_hook

Rust

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/settings.rs
Other languages
Python Ruby LuaTypeScript Go Java .NET C++ Swift
set_hook ( self , name : &str , command : impl Into<OsString> ) → Result<(), Error>
method [source]
method [source]
set_hook

Set one global hook.

Hooks live in the option tables, so Server::typed_global_option reads one back under an indexed name such as after-new-window[0].

Errors

Returns an error when tmux rejects the hook name or command.

In other ports Bind a command to a global hook

0 declared, 0 inherited

Esc

Type to search.