]> arthur.barton.de Git - ax-zsh.git/blob - default_plugins/history/history.zshrc
a70d304269ab03a4c75253a8ff244677490831a0
[ax-zsh.git] / default_plugins / history / history.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # history.zshrc: Setup ZSH history
3
4 if [[ -z "$HISTFILE" ]]; then
5         # Save history file in cache directory, if not already present
6         # in $ZDOTDIR/$HOME:
7         [ -r "${ZDOTDIR:-$HOME}/.zsh_history" ] \
8                 && HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history" \
9                 || HISTFILE="$ZSH_CACHE_DIR/history"
10 fi
11
12 HISTSIZE=10000
13 SAVEHIST=10000
14
15 setopt append_history
16 setopt extended_history
17 setopt hist_expire_dups_first
18 setopt hist_ignore_dups
19 setopt hist_ignore_space
20 setopt hist_verify
21 setopt inc_append_history
22 setopt share_history
23
24 alias history='fc -il 1'