zsh: don't add duplicates to history

This commit is contained in:
Fernando Schauenburg 2024-02-17 17:59:11 +01:00
parent b5eef19e5a
commit e97a7dbd7e

View file

@ -1,6 +1,7 @@
setopt APPEND_HISTORY # Append history rather than overwrite. setopt APPEND_HISTORY # Append history rather than overwrite.
setopt EXTENDED_HISTORY # Save beginning timestamp and duration. setopt EXTENDED_HISTORY # Save beginning timestamp and duration.
setopt INC_APPEND_HISTORY # Don't wait until shell exits to save history. setopt INC_APPEND_HISTORY # Don't wait until shell exits to save history.
setopt HIST_IGNORE_ALL_DUPS # Don't add duplicates to history.
HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history" HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history"
HISTSIZE=1000000 HISTSIZE=1000000