This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_SHELL_HISTORY_BUFFER

History buffer in bytes

Type: int

Help

Number of bytes dedicated for storing executed commands.

Direct dependencies

SHELL_HISTORY && SHELL

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definition

At subsys/shell/Kconfig:183

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:45

Menu path: (Top) → Sub Systems and OS Services → Shell → Enable history in shell

config SHELL_HISTORY_BUFFER
    int "History buffer in bytes"
    default 128 if SHELL_MINIMAL
    default 512
    depends on SHELL_HISTORY && SHELL
    help
      Number of bytes dedicated for storing executed commands.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)