Cicada History

Shell history items are stored with sqlite database. Like bash, you can use Ctrl-R, Ctrl-P, Ctrl-N, Arrow-UP, Arrow-DOWN keys to access history.

Recommend that in your ~/.inputrc, you have:

"\e[1;9D": backward-word
"\e[1;9C": forward-word
"\e[A": history-search-backward
"\e[B": history-search-forward

You can prevent commands from saving into history by prefixing spaces with them.

You can modify the settings of history related value in RC-file. These values on the right side are the default ones:

export HISTORY_FILE="$HOME/.local/share/cicada/history.sqlite"
export HISTORY_SIZE=99999
export HISTORY_TABLE="cicada_history"

History is Immutable

In Bash, you can edit history items. However in cicada, the history items are immutable. You cannot edit them. But you could delete them.

The history builtin command

$ history --help

    history [FLAGS] [OPTIONS] [PATTERN]

    -a, --asc          Search old items first
    -h, --help         Prints help information
    -n, --no-id        Do not show ROWID
    -o, --only-id      Only show ROWID
    -p, --pwd          For current directory only
    -s, --session      For current session only
    -d, --show-date    Show date
    -V, --version      Prints version information

    -l, --limit <limit>     [default: 20]

    <PATTERN>    You can use % to match anything [default: ]

See more details here: history built-in command


See more on Environment Variables