# LibTmux.Hook

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/hook.ex#L1
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-hook/

Sets and shows a built-in hook on a one-shot tmux server descriptor.

Choose a global setting or an exact observed reference. The daemon's
release selects the catalogue in `LibTmux.Settings`. tmux executes the
hook in its own context after it is set. Target lifetime and alias
requirements are the same as for `LibTmux.Option`.

## Members

### Other members

- [`set/5`](/en/elixir/pr-173/reference/libtmux-hook-set-5/) (function): Replaces the named hook's command array with one trusted tmux command.
- [`show/4`](/en/elixir/pr-173/reference/libtmux-hook-show-4/) (function): Shows the hook in tmux's native command-array notation.
