# prompt-history-limit

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/prompt-history-limit/

> Set the number of history items to save in the history file for each type of command prompt.

option tmux3.7c

Set the number of history items to save in the history file for each type of command prompt.

* Scope

  server

* Type

  Number

* Default

  `100`

* Values

  0 to 2147483647

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.7c/manual/set-option/) `-s prompt-history-limit value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.7c/manual/show-options/) `-s prompt-history-limit`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/prompt-history-limit/#description)

Set the number of history items to save in the history file for each type of command prompt.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/options/prompt-history-limit/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/prompt-history-limit/) : present
* tmux 3.2a : not present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/options/prompt-history-limit/#source)

* Defined in

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

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#options-prompt-history-limit)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/options/prompt-history-limit/#used-by)

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.Server.SetPromptHistoryLimit`](https://libtmux.org/en/go/latest/reference/tmux-server-setprompthistorylimit/), [`tmux.ServerOptionValues.PromptHistoryLimit`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-prompthistorylimit/)
