[zsh] Adjust history settings

This commit is contained in:
2026-01-10 09:09:56 +00:00
parent 307ec18764
commit 511cb9fead
2 changed files with 8 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
# History
mkdir -p "${XDG_STATE_HOME}/zsh"
HISTFILE="${XDG_STATE_HOME}/zsh/history"
HISTSIZE=2000
SAVEHIST=1000
HISTSIZE=1000000
SAVEHIST=$HISTSIZE
setopt EXTENDED_HISTORY
# Prompt
setopt PROMPT_SUBST

View File

@@ -2,3 +2,8 @@ fpath+=($XDG_CONFIG_HOME/zsh/completions)
autoload -Uz compinit
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
# If we have fzf installed, load its zsh completions
if [ -x $(command -v fzf) ]; then
source <(fzf --zsh)
fi