From dc307385aea67d14d1f0ed48152cf084682d25d51990864f3c28bc6b9afb5836 Mon Sep 17 00:00:00 2001 From: Paolo Perego Date: Mon, 3 Mar 2025 16:14:21 +0000 Subject: [PATCH] - Fix bsc#1226450. Placing skip_global_compinit=1 in your $ZDOTDIR/.zshenv disables compinit from being called OBS-URL: https://build.opensuse.org/package/show/shells/zsh?expand=0&rev=257 --- zsh.changes | 6 ++++++ zshrc | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/zsh.changes b/zsh.changes index f772e2c..fcdc33e 100644 --- a/zsh.changes +++ b/zsh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 3 16:12:24 UTC 2025 - Paolo Perego + +- Fix bsc#1226450. Placing skip_global_compinit=1 in your $ZDOTDIR/.zshenv + disables compinit from being called + ------------------------------------------------------------------- Mon Mar 3 15:52:59 UTC 2025 - Paolo Perego diff --git a/zshrc b/zshrc index 0034c91..c582f97 100644 --- a/zshrc +++ b/zshrc @@ -63,8 +63,13 @@ unsetopt hup # Comment the two below lines out, if you are on a slow machine, and # comment the above compctl lines in. -autoload -U compinit -compinit +# If you don't want compinit called here, place the line +# skip_global_compinit=1 +# in your $ZDOTDIR/.zshenv +if [[ -z "$skip_global_compinit" ]]; then + autoload -U compinit + compinit +fi # Completion so "cd .." -> "cd ../" # zstyle ':completion:*' special-dirs ..