From 9fa5d17125e7e38c2dcba121047e7dfde2e294b1 Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Sat, 24 Jan 2026 16:50:10 +0100 Subject: rewrite zshrc --- .config/shell/.zshrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '.config/shell') 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) -- cgit v1.2.3