# hook_session

Source: https://libtmux.org/en/tmux/latest/catalog/formats/hook_session/

> ID of session where hook was run, if any

format variable tmux3.7c

ID of session where hook was run, if any

* Type

  Text

* Usage

  `#{hook_session}`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/formats/hook_session/#description)

ID of session where hook was run, if any

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/formats/hook_session/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/hook_session/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_session/) : present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/formats/hook_session/#source)

* Defined in

  [`notify.c:204`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L204)

* C source reference

  [`format_table`](https://libtmux.org/en/tmux/latest/reference/c-variable-format-c-format_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#hook_session)
