2021-04-17

ZSH Command History Configuration

 17 Apr 2021  Gists

ZSH Command History Configuration

Add to .zshrc file for reverse-i-search on command history:

export HISTFILE=~/.zsh_history
export HISTSIZE=1000000
export SAVEHIST=1000000
setopt INC_APPEND_HISTORY
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE

export HISTFILE — Location of history file

export HISTSIZE — Size of the history file to be kept on disk (number of lines)

export SAVEHIST — Size of the history file to be kept in RAM for faster searches (has no performance impact on modern hardware)

NC_APPEND_HISTORY — Append commands to the shell history immediately, rather than on exit

HIST_FIND_NO_DUPS — Will skip duplicates when using arrow keys to navigate recent commands

HIST_IGNORE_ALL_DUPS — Will not append duplicate commands to the history file

HIST_IGNORE_SPACE — Will not append a command that begins with a space to the history file

Webmentions & Comments

Copyright © Paramdeo Singh. Built with Jekyll and ☕️ in Guyana. All Rights Reserved.

Last Site Build on Mon, 02 Aug 2021 12:05:40 -0400

1MB Club Badge

Paramdeo Singh Guyana

Riding the wave of consciousness in this treacherous mortal sea.

Technology Design Strategy Literature Personal Blogs