history maybe fix
This commit is contained in:
parent
8216655bb2
commit
d78f810849
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue