[Zsh] history ignore dups
This commit is contained in:
parent
1e36da76c0
commit
226cfc0303
@ -3,7 +3,9 @@ HISTFILE=~/.histfile
|
|||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
SAVEHIST=10000
|
SAVEHIST=10000
|
||||||
export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
|
export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
|
||||||
export HISTCONTROL=”ignoredups”
|
#export HISTCONTROL=ignoredups
|
||||||
|
export HISTCONTROL=erasedups
|
||||||
|
|
||||||
#export HISTIGNORE=”&:ls:[bf]g:exit”
|
#export HISTIGNORE=”&:ls:[bf]g:exit”
|
||||||
setopt -h histappend
|
setopt -h histappend
|
||||||
PROMPT_COMMAND='history -a'
|
PROMPT_COMMAND='history -a'
|
||||||
|
Loading…
Reference in New Issue
Block a user