This commit is contained in:
Paul Walker
2021-04-27 11:27:56 +01:00
parent d7ed05c35e
commit 730253d1fd
6 changed files with 114 additions and 0 deletions

16
zshrc.d/history.zsh Normal file
View File

@@ -0,0 +1,16 @@
## History stuff
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
setopt EXTENDED_HISTORY
SAVEHIST=5000
HISTSIZE=2000
setopt SHARE_HISTORY
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY
# expire duplicates first
setopt HIST_EXPIRE_DUPS_FIRST
# do not store duplications
setopt HIST_IGNORE_DUPS
#ignore duplicates when searching
setopt HIST_FIND_NO_DUPS
# removes blank lines from history
setopt HIST_REDUCE_BLANKS