From 07da97d29382542ea0fae08fcc4716b9198d04c7 Mon Sep 17 00:00:00 2001 From: memdmp Date: Sat, 1 Mar 2025 02:21:37 +0100 Subject: feat: SKIP_ZGEN_LOAD --- CHANGELOG.md | 4 ++++ zuwu.zsh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d63191c..862f8ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ Items here can change in various ways, and changes introduced here should not be +### Features + +- Add config item (`SKIP_ZGEN_LOAD`, will apply if set to _any_ non-empty value, including `false`) to skip the zgen load checks, if desired + ### Fixes - Use `which` to detect `compinit` ([`396a5a7`](https://git.estrogen.zone/zuwu.git/commit/?id=396a5a7fb6274d61586a48272f977dab426b1a55)) diff --git a/zuwu.zsh b/zuwu.zsh index 0646798..fa500f9 100755 --- a/zuwu.zsh +++ b/zuwu.zsh @@ -188,7 +188,7 @@ if grep "\"$HOME" "$HOME/.zshrc" >/dev/null 2>/dev/null; then fi # Load zgen, if present -if [[ -f "$HOME/.zgen/zgen.zsh" ]]; then +if [[ "$SKIP_ZGEN_LOAD" == "" ]] && [[ -f "$HOME/.zgen/zgen.zsh" ]]; then source "$HOME/.zgen/zgen.zsh" LOADED_ZGEN=true fi -- cgit v1.2.3