chore(zsh): Configure history options
This commit is contained in:
parent
142e908e2c
commit
d607b9fa15
@ -10,6 +10,22 @@ zinit load zsh-users/zsh-autosuggestions
|
||||
autoload -Uz compinit && compinit
|
||||
zinit cdreplay -q
|
||||
|
||||
# Keybinding
|
||||
bindkey -e
|
||||
|
||||
# History
|
||||
HISTSIZE=5000
|
||||
HISTFILE=~/.zsh_history
|
||||
SAVEHIST=$HISTSIZE
|
||||
HISTDUP=erase
|
||||
setopt appendhistory
|
||||
setopt sharehistory
|
||||
setopt hist_ignore_space
|
||||
setopt hist_ignore_all_dups
|
||||
setopt hist_save_no_dups
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_find_no_dup
|
||||
|
||||
# Enable autojump
|
||||
[[ -s /etc/profile.d/autojump.zsh ]] && source /etc/profile.d/autojump.zsh
|
||||
|
||||
|
@ -7,8 +7,5 @@ export XDG_CACHE_HOME=$XDG_CONFIG_HOME/cache
|
||||
export EDITOR="nvim"
|
||||
export VISUAL="nvim"
|
||||
|
||||
# zsh
|
||||
# zsh config
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
export HISTFILE="$ZDOTDIR/.zhistory"
|
||||
export HISTSIZE=10000
|
||||
export SAVEHIST=10000
|
||||
|
Loading…
Reference in New Issue
Block a user