Core LibraryAPI Reference

Choose documentation 2

latest

Current version

latest
English

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

cmdlet libtmux-powershell latest

LibTmux.Get-TmuxHook

LibTmux\Get-TmuxHook LibTmux\Get-TmuxHook

Read native grouped hooks from an owner table.

Source and package
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxHookCommand.cs

Description#

Emit native TmuxHook objects with a base Name and indexed Values entries. Get by base name only; indexed names are rejected with a clear error rather than silently returning no matches. Missing local hooks emit no objects and are not filled from the global table. Omit Name to list the selected scope.

Notes

Server hooks are the global hook table; tmux has no separate server hook table. Choose a hook supported by the selected scope. Scope and Global pass through to tmux without remapping the owner. Empty pipelines do no I/O. Errors retain the native owner and core exception; Continue permits later owners and Stop terminates. Cancellation cannot undo commands already dispatched. Multiple mutations are sequential, not an atomic replacement.

Command details#

Command type
cmdlet
Default parameter set
Server
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server : A native server owner.; LibTmux.Session : A native session owner.; LibTmux.Window : A native window owner.; LibTmux.Pane : A native pane owner.
Outputs
LibTmux.TmuxHook

Examples#

Example 1 Inspect a previously configured hook on a native $session . View source

Terminal window
$session | LibTmux\Get-TmuxHook -Name 'alert-bell'
Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

LibTmux.TmuxHook : One native grouped hook per result, with indexed TmuxHookEntry values.

Esc

Type to search.

Reference preview Open reference