ZSH: Restructured history settings

This commit is contained in:
Christian Baer 2024-10-28 22:28:10 +01:00
parent a768bf308f
commit 360e82abe9

View File

@ -1,7 +1,8 @@
## Command history configuration ## Command history configuration
HISTFILE="${ZCACHE}/history" export HISTFILE="${ZCACHE}/history"
HISTSIZE=1000000000 export HISTSIZE=1000000000
SAVEHIST=1000000000 export SAVEHIST=${HISTSIZE}
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"
export HISTTIMEFORMAT="[%F %T] " export HISTTIMEFORMAT="[%F %T] "
setopt INC_APPEND_HISTORY setopt INC_APPEND_HISTORY
@ -12,5 +13,4 @@ setopt hist_verify
setopt incappendhistory setopt incappendhistory
setopt histignorespace setopt histignorespace
setopt histnostore setopt histnostore
setopt share_history setopt share_history
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"