dotfiles/.config/zsh/lib/20-history.zsh

24 lines
615 B
Bash
Raw Permalink Normal View History

2016-04-16 16:31:54 +02:00
## Command history configuration
2020-05-24 23:16:31 +02:00
HISTFILE=$ZDOTDIR/history
2020-09-24 23:27:12 +02:00
HISTSIZE=1000000000
SAVEHIST=1000000000
2016-04-16 16:31:54 +02:00
2020-09-24 23:27:12 +02:00
export HISTTIMEFORMAT="[%F %T] "
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_FIND_NO_DUPS
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
2020-09-24 23:27:12 +02:00
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"
2020-05-23 10:10:24 +02:00
# Make up and down arrow take whats 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