diff options
author | 2025-03-01 02:21:37 +0100 | |
---|---|---|
committer | 2025-03-01 02:21:37 +0100 | |
commit | 07da97d29382542ea0fae08fcc4716b9198d04c7 (patch) | |
tree | 16962e29edef5348e5a95d2e34213938b16c5ccf | |
parent | a47972db91550397e57c1ee76f3f409a3805365e (diff) | |
download | zuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.tar.gz zuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.tar.bz2 zuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.tar.lz zuwu-07da97d29382542ea0fae08fcc4716b9198d04c7.zip |
feat: SKIP_ZGEN_LOAD
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rwxr-xr-x | zuwu.zsh | 2 |
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)) @@ -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 |