]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Be verbose for "axzshctl update-caches" in debug mode
authorAlexander Barton <alex@barton.de>
Tue, 1 Feb 2022 20:12:33 +0000 (21:12 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 1 Feb 2022 20:12:33 +0000 (21:12 +0100)
bin/axzshctl

index 2ff71fae6c622a7a84efecc4ff6ccae27eee4bae..8cfd0a202fc4a632d92256dee880f3f20651105d 100755 (executable)
@@ -86,7 +86,9 @@ function UpdatePluginCache {
                || return 1
 
        echo "Regenerating AX-ZSH cache ..."
-       AXZSH_PLUGIN_CHECK=1 zsh -ilc '' >/dev/null
+       [[ -z "$AXZSH_DEBUG" ]] \
+               && AXZSH_PLUGIN_CHECK=1 zsh -ilc '' >/dev/null \
+               || AXZSH_PLUGIN_CHECK=1 zsh -ilc ''
 }
 
 function NormalizedPluginName {