history maybe fix

This commit is contained in:
Christoph J. Scherr 2023-02-23 09:00:09 +01:00
parent 8216655bb2
commit d78f810849
2 changed files with 10 additions and 2 deletions

View File

@ -25,12 +25,16 @@ export ZSH=$HOME/.zsh-server
### ---- history config ------------------------------------- ### ---- history config -------------------------------------
export HISTFILE=~/.zsh_history export HISTFILE=~/.zsh_history
setopt appendhistory
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
# How many commands zsh will load to memory. # How many commands zsh will load to memory.
export HISTSIZE=100000 export HISTSIZE=100000
# How many commands history will save on file. # How many commands history will save on file.
export SAVEHIST=100000 # all of them!
export SAVEHIST=10000000
# History won't save duplicates. # History won't save duplicates.
setopt HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_ALL_DUPS

View File

@ -34,12 +34,16 @@ export ZSH=$HOME/.zsh
### ---- history config ------------------------------------- ### ---- history config -------------------------------------
export HISTFILE=~/.zsh_history export HISTFILE=~/.zsh_history
setopt appendhistory
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
# How many commands zsh will load to memory. # How many commands zsh will load to memory.
export HISTSIZE=100000 export HISTSIZE=100000
# How many commands history will save on file. # How many commands history will save on file.
export SAVEHIST=100000 # all of them!
export SAVEHIST=10000000
# History won't save duplicates. # History won't save duplicates.
setopt HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_ALL_DUPS