# automatic-rename

Source: https://libtmux.org/en/tmux/3.2a/catalog/options/automatic-rename/

> Control automatic window renaming.

option tmux3.2a

Control automatic window renaming.

* Scope

  window

* Type

  Flag (on or off)

* Default

  `on`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.2a/manual/set-option/) `-w automatic-rename value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.2a/manual/show-options/) `-w automatic-rename`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/options/automatic-rename/#description)

Control automatic window renaming. When this setting is enabled, `tmux` will rename the window automatically using the format specified by [`automatic-rename-format`](https://libtmux.org/en/tmux/3.2a/catalog/options/automatic-rename-format/). This flag is automatically disabled for an individual window when a name is specified at creation with [`new-window`](https://libtmux.org/en/tmux/3.2a/manual/new-window/) or [`new-session`](https://libtmux.org/en/tmux/3.2a/manual/new-session/), or later with [`rename-window`](https://libtmux.org/en/tmux/3.2a/manual/rename-window/), or with a terminal escape sequence. It may be switched off globally with:

```tmux-config
set-option -wg automatic-rename off
```

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/options/automatic-rename/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/automatic-rename/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/automatic-rename/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/options/automatic-rename/#source)

* Defined in

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

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#options-automatic-rename)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/options/automatic-rename/#used-by)

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.GlobalWindowScope.SetAutomaticRename`](https://libtmux.org/en/go/latest/reference/tmux-globalwindowscope-setautomaticrename/), [`tmux.Window.SetAutomaticRename`](https://libtmux.org/en/go/latest/reference/tmux-window-setautomaticrename/), [`tmux.WindowOptionValues.AutomaticRename`](https://libtmux.org/en/go/latest/reference/tmux-windowoptionvalues-automaticrename/)
