# io.github.libtmux.kotlin.Hooks.`set`

- **Module:** io.github.libtmux.kotlin
- **Package:** io.github.libtmux:libtmux-kotlin
- **Language:** Kotlin
- **Kind:** method
- **Source:** https://libtmux.org/en/kotlin/latest/reference/sources/libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-hooks-set/

```
public suspend fun Hooks.`set`(event: String, command: String): Unit

public suspend fun Hooks.`set`(event: String, command: List<String>): Unit
```

Binds a tmux command to an event at this scope, replacing anything already bound to it.

## Parameters

- `event` (`String`)
- `command` (`String`) (for `` `set`(event, command) [overload 1] ``)
- `command` (`List<String>`) (for `` `set`(event, command) [overload 2] ``)
