# after-show-environment

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-show-environment/

> 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-show-environment command`

* Read

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

* Runs

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

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/after-show-environment/#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-show-environment/#releases)

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

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

* Defined in

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

* 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-show-environment/#used-by)

Library documentation that names this hook.

* Python

  [`libtmux.hooks.HooksMixin.unset_hook`](https://libtmux.org/en/py/latest/reference/libtmux-hooks-hooksmixin-unset_hook/), [`libtmux.Pane.unset_hook`](https://libtmux.org/en/py/latest/reference/libtmux-pane-unset_hook/), [`libtmux.Server.unset_hook`](https://libtmux.org/en/py/latest/reference/libtmux-server-unset_hook/), [`libtmux.Session.unset_hook`](https://libtmux.org/en/py/latest/reference/libtmux-session-unset_hook/), [`libtmux.Window.unset_hook`](https://libtmux.org/en/py/latest/reference/libtmux-window-unset_hook/)

* Rust

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

* Go

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