aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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