summaryrefslogtreecommitdiff
path: root/.config/shell/.zshrc
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-01-24 16:50:10 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-01-24 16:50:10 +0100
commit9fa5d17125e7e38c2dcba121047e7dfde2e294b1 (patch)
tree2ec44225dd65178a3315e570f692d6e572c5de24 /.config/shell/.zshrc
parent3cfa3e667731e47a0facb2b19fec8598984368c6 (diff)
downloaddotfiles-9fa5d17125e7e38c2dcba121047e7dfde2e294b1.tar.gz
dotfiles-9fa5d17125e7e38c2dcba121047e7dfde2e294b1.tar.bz2
dotfiles-9fa5d17125e7e38c2dcba121047e7dfde2e294b1.zip
rewrite zshrc
Diffstat (limited to '.config/shell/.zshrc')
-rw-r--r--.config/shell/.zshrc11
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)