diff options
Diffstat (limited to '.config')
| -rw-r--r-- | .config/shell/.zshrc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc index 9f07720..baecdca 100644 --- a/.config/shell/.zshrc +++ b/.config/shell/.zshrc @@ -33,6 +33,9 @@ PS1="%{$blue%}%n%{$green%}@%{$cyan%}%m %{$lime%}%1~ %{$reset%}$ " # ─── 4) History ────────────────────────────────────────────────────────────── HISTSIZE=10000000 SAVEHIST=10000000 +if [[ ! -d "${XDG_CACHE_HOME:-$HOME/.cache}/shell" ]]; then + mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/shell" +fi HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/shell/history" setopt inc_append_history @@ -82,8 +85,12 @@ ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=100 # ─── 7) Completion ─────────────────────────────────────────────────────────── # Run compinit **after all plugins** to avoid wiping widgets -autoload -U compinit -compinit +autoload -Uz compinit +for dump in "${ZDOTDIR:-$HOME}/.zcompdump"(N.m1); do + compinit + break +done +compinit -C zstyle ':completion:*' menu select zmodload zsh/complist fpath=(/usr/share/zsh/site-functions $fpath) |
