Improve history handling for zsh

This commit is contained in:
2025-06-10 10:48:25 +02:00
parent 0bc370861e
commit 0a750c54f9

8
.zshrc
View File

@@ -13,11 +13,19 @@ case "$0" in -*)
esac
HISTFILE=~/.zsh_history
# History in the file
HISTSIZE=10000
# History in RAM
SAVEHIST=10000
setopt appendhistory
setopt SHARE_HISTORY
# Self-explanatory
setopt hist_ignore_space
setopt hist_ignore_dups
# Remove older duplicates first
setopt hist_expire_dups_first
# Store timestamps
setopt EXTENDED_HISTORY
export EDITOR=vim
# Noticing this EDITOR setting, zsh will default to vim keybindings. No thanks.