# TmuxHook.index

- **Module:** TmuxHook
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Options.swift#L86
- **Page:** https://libtmux.org/reference/swift/tmuxhook-index/

Which slot of the name's array holds this command.

tmux stores an array per hook name and labels every bound command with
its position, filling `[0]` when a caller does not choose one. So a
reported hook always has an index, and reading one costs no unwrapping.
