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

22 lines
536 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Command history configuration
HISTFILE=$ZDOTDIR/history
HISTSIZE=40000
SAVEHIST=40000
setopt append_history
setopt extended_history
setopt hist_ignore_dups
setopt hist_verify
setopt incappendhistory
setopt histignorespace
setopt histnostore
setopt share_history
HISTORY_IGNORE='([bf]g *|disown|cd ..|cd -)'
# 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