# after-list-clients

Source: https://libtmux.org/en/tmux/3.7c/catalog/hooks/after-list-clients/

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

hook tmux3.7c

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.7c/manual/set-hook/) `after-list-clients command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.7c/manual/show-hooks/) `after-list-clients`

* Runs

  After [`list-clients`](https://libtmux.org/en/tmux/3.7c/manual/list-clients/) completes

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/after-list-clients/#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.7c/manual/split-window/):

Every command that has an after hook shares this text.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/after-list-clients/#releases)

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

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/after-list-clients/#source)

* Defined in

  [`options-table.c:1650`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L1650)

* Fired from

  * [`cmd-queue.c:662`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L662) in `cmdq_insert_hook`

* C source reference

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

* CLI Manual

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

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/after-list-clients/#used-by)

Library documentation that names this hook.

* Rust

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

* Go

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