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

Enable history in shell

Type: bool

Help

Enable commands history. History can be accessed using up and down
arrows or Ctrl+n and Ctrl+p meta keys.

Direct dependencies

SHELL

(Includes any dependencies from ifs and menus.)

Default

Symbols selected by this symbol

Kconfig definition

At subsys/shell/Kconfig:175

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

Menu path: (Top) → Sub Systems and OS Services → Shell

config SHELL_HISTORY
    bool "Enable history in shell"
    default y if !SHELL_MINIMAL
    select RING_BUFFER
    depends on SHELL
    help
      Enable commands history. History can be accessed using up and down
      arrows or Ctrl+n and Ctrl+p meta keys.

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