]> arthur.barton.de Git - ax-zsh.git/blob - default_plugins/history/history.zshrc
history: Make sure HISTFILE is set
[ax-zsh.git] / default_plugins / history / history.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # history.zshrc: Setup ZSH history
3
4 function clear_history {
5         local HISTSIZE=0
6         cat /dev/null >"$HISTFILE"
7         fc -R
8 }
9
10 [[ -n "$HISTFILE" ]] || HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history"
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 histignorealldups
22 setopt histignorespace
23 setopt inc_append_history
24 setopt share_history
25
26 alias history='fc -il 1'