# after-resize-pane

Source: https://libtmux.org/en/tmux/latest/catalog/hooks/after-resize-pane/

> 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/latest/manual/set-hook/) `after-resize-pane command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/latest/manual/show-hooks/) `after-resize-pane`

* Runs

  After [`resize-pane`](https://libtmux.org/en/tmux/latest/manual/resize-pane/) completes

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

Every command that has an after hook shares this text.

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/hooks/after-resize-pane/#releases)

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

## Source[#](https://libtmux.org/en/tmux/latest/catalog/hooks/after-resize-pane/#source)

* Defined in

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

* 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/latest/reference/c-variable-options_table/), [`cmdq_insert_hook`](https://libtmux.org/en/tmux/latest/reference/c-function-cmdq_insert_hook/)

* CLI Manual

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

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/hooks/after-resize-pane/#used-by)

Library documentation that names this hook.

* Rust

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

* Go

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