# TmuxHook.index

- **Module:** TmuxHook
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Options.swift#L87
- **Page:** https://libtmux.org/en/swift/latest/reference/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.
