# TmuxHook.init(name:index:command:scope:)

- **Module:** TmuxHook
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Options.swift#L93
- **Page:** https://libtmux.org/reference/swift/tmuxhook-init(name-index-command-scope-)/

```
TmuxHook.init(name:index:command:scope:)(name: String, index: Int, command: String, scope: HookScope)
```
