fix: zsh history share

This commit is contained in:
Ben Grande 2024-05-21 11:04:10 +02:00
parent b44fbb6d98
commit 23f4e79587
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -29,6 +29,9 @@ SAVEHIST="$HISTSIZE"
setopt hist_expire_dups_first # purge dups first
setopt hist_ignore_dups # ignore dups in history list
setopt hist_verify # if command has hist expansion, show it before executing
setopt append_history # append instead of replacing
setopt share_history # share history across sessions
setopt no_inc_append_history # conflicts with share_history
## - Expansion
setopt auto_cd
setopt no_nomatch # if a pattern has no matches print an error
@ -198,8 +201,8 @@ fi
## Load completions.
autoload -Uz compinit
zmodload zsh/complist
mkdir -p $XDG_CACHE_HOME/zsh
compinit -u -d $XDG_CACHE_HOME/zsh/zcompdump
mkdir -p "$XDG_CACHE_HOME/zsh"
compinit -u -d "$XDG_CACHE_HOME/zsh/zcompdump"
# _comp_options+=(globdots)
! has zoxide || eval "$(zoxide init zsh)"
! has gitlint || eval "$(_GITLINT_COMPLETE=zsh_source gitlint)"