fix history

This commit is contained in:
sudacode 2025-05-06 02:01:13 -07:00
parent 4b32fb704a
commit 0ffeef12aa
Signed by: sudacode
SSH Key Fingerprint: SHA256:lT5C2bB398DcX6daCF/gYFNSTK3y+Du3oTGUnYzfTEw

View File

@ -11,18 +11,18 @@ source ~/.environment
source <(fzf --zsh)
eval $(thefuck --alias)
HISTFILE=~/.zsh_history
HISTSIZE=10000
HISTFILESIZE=2000
HISTCONTROL=ignoreboth
# as soon as you hit enter, append to $HISTFILE
setopt INC_APPEND_HISTORY
# merge history from all running shells
setopt SHARE_HISTORY
# ignore duplicates and trivial commands
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
HISTFILE=~/.zsh_history
HISTCONTROL=ignoreboth
HISTSIZE=10000 # max lines kept in memory
SAVEHIST=10000 # max lines saved to $HISTFILE
# 2. Behavior flags
setopt APPEND_HISTORY # append, dont rewrite the entire file on exit
setopt INC_APPEND_HISTORY # write each command as its entered
setopt SHARE_HISTORY # merge history across all running zshs
setopt HIST_IGNORE_ALL_DUPS # dont record a command if its already in history
setopt HIST_IGNORE_SPACE # dont record commands that start with a space
# fpath=(/Users/sudacode/.docker/completions $fpath)
FPATH="$HOME/.docker/completions:$FPATH"