2016-04-16 16:31:54 +02:00
|
|
|
|
## Command history configuration
|
2020-05-24 23:16:31 +02:00
|
|
|
|
HISTFILE=$ZDOTDIR/history
|
|
|
|
|
HISTSIZE=40000
|
|
|
|
|
SAVEHIST=40000
|
2016-04-16 16:31:54 +02:00
|
|
|
|
|
|
|
|
|
setopt append_history
|
|
|
|
|
setopt extended_history
|
2020-05-24 23:16:31 +02:00
|
|
|
|
setopt hist_ignore_dups
|
2016-04-16 16:31:54 +02:00
|
|
|
|
setopt hist_verify
|
2020-05-24 23:16:31 +02:00
|
|
|
|
setopt incappendhistory
|
|
|
|
|
setopt histignorespace
|
|
|
|
|
setopt histnostore
|
|
|
|
|
setopt share_history
|
|
|
|
|
HISTORY_IGNORE='([bf]g *|disown|cd ..|cd -)'
|
2020-05-23 10:10:24 +02:00
|
|
|
|
|
|
|
|
|
# Make up and down arrow take what’s typed on the commandline in to account.
|
|
|
|
|
|
|
|
|
|
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
|
|
|
|
|
|
|
|
|
zle -N up-line-or-beginning-search
|
|
|
|
|
zle -N down-line-or-beginning-search
|