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.

Python API

method libtmux stable

Session.set_hook

Set hook for tmux target.

Source and package
Qualified name
libtmux.Session.set_hook
Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/hooks.py
Other languages
PowerShell Julia Ruby LuaTypeScriptRustGo Java C# C++Swift Kotlin Scala F#
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

Inherited from libtmux.hooks.HooksMixin

Description#

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

tmux catalog Hooks

In other ports Bind a command to a session hook
Esc

Type to search.

Reference preview Open reference