Add zsh
This commit is contained in:
16
zshrc.d/history.zsh
Normal file
16
zshrc.d/history.zsh
Normal 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
|
||||
Reference in New Issue
Block a user