aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-01 02:21:37 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-01 02:21:37 +0100
commit07da97d29382542ea0fae08fcc4716b9198d04c7 (patch)
tree16962e29edef5348e5a95d2e34213938b16c5ccf
parenta47972db91550397e57c1ee76f3f409a3805365e (diff)
downloadzuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.tar.gz
zuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.tar.bz2
zuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.tar.lz
zuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.zip

feat: SKIP_ZGEN_LOAD

-rw-r--r--CHANGELOG.md4
-rwxr-xr-xzuwu.zsh2
2 files changed, 5 insertions, 1 deletions
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
<!-- Use [`current-commit`](https://git.estrogen.zone/zuwu.git/commit/?h=vx.y.z) in tagged commit for the commit ID of the next commit -->
+### 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