Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

method libtmux stable

HooksMixin.set_hook

Set hook for tmux target.

Source and package
Qualified name
libtmux.hooks.HooksMixin.set_hook
Module
libtmux.hooks
Declared in
HooksMixin
Package
libtmux
Source
src/libtmux/hooks.py
set_hook ( self, hook: str, value: int | str, unset: bool | None = None, run: bool | None = None, append: bool | None = None, g: bool | None = None, global_: bool | None = None, scope: OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE, ) → Self

Description#

Wraps $ tmux set-hook <hook> <value>.

tmux catalog Hooks

Esc

Type to search.

Reference preview Open reference