# base-index

Source: https://libtmux.org/en/tmux/3.2a/catalog/options/base-index/

> Set the base index from which an unused index should be searched when a new window is created.

option tmux3.2a

Set the base index from which an unused index should be searched when a new window is created.

* Scope

  session

* Type

  Number

* Default

  `0`

* Values

  0 to 2147483647

* Set

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

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.2a/manual/show-options/) `base-index`

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

Set the base index from which an unused index should be searched when a new window is created. The default is zero.

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

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

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

* Defined in

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

* 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-base-index)

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

Library documentation that names this option.

* Python

  [`libtmux.pytest_plugin.config_file`](https://libtmux.org/en/py/latest/reference/libtmux-pytest_plugin-config_file/)

* TypeScript

  [`types.NewWindowOptions.index`](https://libtmux.org/en/ts/latest/reference/types-newwindowoptions-index/)

* Rust

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

* Go

  [`tmux.GlobalSessionScope.SetBaseIndex`](https://libtmux.org/en/go/latest/reference/tmux-globalsessionscope-setbaseindex/), [`tmux.MoveWindowRequest.Renumber`](https://libtmux.org/en/go/latest/reference/tmux-movewindowrequest-renumber/), [`tmux.ServerOptions.ConfigFile`](https://libtmux.org/en/go/latest/reference/tmux-serveroptions-configfile/), [`tmux.Session.SetBaseIndex`](https://libtmux.org/en/go/latest/reference/tmux-session-setbaseindex/), [`tmux.SessionOptionValues.BaseIndex`](https://libtmux.org/en/go/latest/reference/tmux-sessionoptionvalues-baseindex/)

* C++

  [`libtmux::Window::index`](https://libtmux.org/en/cxx/latest/reference/libtmux-window-index-1i4m/)
