1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # history.zshrc: Setup ZSH history
4 if [[ -z "$HISTFILE" ]]; then
5 # Save history file in cache directory, if not already present
7 [ -r "${ZDOTDIR:-$HOME}/.zsh_history" ] \
8 && HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history" \
9 || HISTFILE="$ZSH_CACHE_DIR/history"
16 setopt extended_history
17 setopt hist_expire_dups_first
18 setopt hist_ignore_dups
19 setopt hist_ignore_space
21 setopt inc_append_history
24 alias history='fc -il 1'