# hook_session_name

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

> Name of session where hook was run, if any

format variable tmux3.2a

Name of session where hook was run, if any

* Type

  Text

* Usage

  `#{hook_session_name}`

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

Name of session where hook was run, if any

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_session_name/#releases)

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

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_session_name/#source)

* Defined in

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

* 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_name)
