# hook_session

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

> ID of session where hook was run, if any

format variable tmux3.2a

ID of session where hook was run, if any

* Type

  Text

* Usage

  `#{hook_session}`

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

ID of session where hook was run, if any

## Releases[#](https://libtmux.org/en/tmux/3.2a/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/3.2a/catalog/formats/hook_session/#source)

* Defined in

  [`notify.c:42`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L42)

* C source reference

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

* CLI Manual

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