# after-display-message

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-display-message/

> A command's after hook is run after it completes, except when the command is run as part of a hook itself.

hook tmux3.2a

A command's after hook is run after it completes, except when the command is run as part of a hook itself.

* Scope

  session

* Set

  [`set-hook`](https://libtmux.org/en/tmux/3.2a/manual/set-hook/) `after-display-message command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.2a/manual/show-hooks/) `after-display-message`

* Runs

  After [`display-message`](https://libtmux.org/en/tmux/3.2a/manual/display-message/) completes

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-display-message/#description)

A command's after hook is run after it completes, except when the command is run as part of a hook itself. They are named with an ‘`after-`’ prefix. For example, the following command adds a hook to select the even-vertical layout after every [`split-window`](https://libtmux.org/en/tmux/3.2a/manual/split-window/):

Every command that has an after hook shares this text.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-display-message/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/hooks/after-display-message/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-display-message/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-display-message/#source)

* Defined in

  [`options-table.c:1095`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L1095)

* Fired from

  * [`cmd-queue.c:626`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L626) in `cmdq_insert_hook`

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.2a/reference/c-variable-options_table/), [`cmdq_insert_hook`](https://libtmux.org/en/tmux/3.2a/reference/c-function-cmdq_insert_hook/)

* CLI Manual

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

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-display-message/#used-by)

Library documentation that names this hook.

* Rust

  [`options.generated.AFTER_DISPLAY_MESSAGE`](https://libtmux.org/en/rs/latest/reference/options-generated-after_display_message/)

* Go

  [`tmux.ServerHookValues.AfterDisplayMessage`](https://libtmux.org/en/go/latest/reference/tmux-serverhookvalues-afterdisplaymessage/), [`tmux.SessionHookValues.AfterDisplayMessage`](https://libtmux.org/en/go/latest/reference/tmux-sessionhookvalues-afterdisplaymessage/)
