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

Go API

Go documentation

tmux.Session.SetHook

Go

View as Markdown

Module
tmux
Declared in
Session
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/hook_runtime.go
Other languages
Python Ruby LuaTypeScriptRust Java .NET C++Swift
SetHook ( ctx : context.Context , name : string , command : string ) → error
method [source]
method [source]
SetHook

SetHook stores a session hook at this stable session target without refreshing models. Completed failures are secret-safe option errors; cancellation does not prove tmux did not accept the mutation.

In other ports Bind a command to a session hook

0 declared, 0 inherited

Esc

Type to search.