chore(zsh): Configure history options

This commit is contained in:
Olaf Alexander 2024-10-27 19:45:34 -05:00
parent 142e908e2c
commit d607b9fa15
2 changed files with 17 additions and 4 deletions

View File

@ -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

View File

@ -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