On this page
session.settings.Session.set_hook
- Module
- session.settings
- Declared in
- Session
- Package
- libtmux
- Source
- crates/libtmux/src/session/settings.rs
-
Set one hook to a tmux command.
Hooks live in the same option tables, so a hook is an array option and
Self::get_optionreads it under an indexed name such asafter-new-window[0].Errors
Returns an error when tmux rejects the hook name or command.
Returns
crate::Error::OptionScopeMismatchwhen tmux keeps the option in another of its tables.
0 declared, 0 inherited