1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # history.zshrc: Setup ZSH history
4 function clear_history {
6 cat /dev/null >"$HISTFILE"
10 [[ -n "$HISTFILE" ]] || HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history"
16 setopt extended_history
17 setopt hist_expire_dups_first
18 setopt hist_ignore_dups
19 setopt hist_ignore_space
21 setopt histignorealldups
22 setopt histignorespace
23 setopt inc_append_history
26 alias history='fc -il 1'