-
Notifications
You must be signed in to change notification settings - Fork 0
/
history.zsh
19 lines (19 loc) · 1.23 KB
/
history.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export HISTDIR=~/.history
[[ ! -d ${HISTDIR} ]] && mkdir -m700 ${HISTDIR}
export HISTSIZE=5000
export HISTFILE=${HISTDIR}/$HOST
unset HISTDIR
export SAVEHIST=4000
setopt APPEND_HISTORY # append history list to history file, rather than replace it
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history.
setopt HIST_FIND_NO_DUPS # Do not display a line previously found.
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate.
setopt HIST_IGNORE_DUPS # Don't record duplicate entries
setopt HIST_IGNORE_SPACE # Don't record entries starting with a space.
setopt HIST_NO_FUNCTIONS # Remove function definitions from the history list.
setopt HIST_NO_STORE # Remove the history command from the history list.
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history file.
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
setopt NO_SHARE_HISTORY # imports new commands from the history file