]> arthur.barton.de Git - ax-zsh.git/commitdiff
The "debug mode" does not depend on "AXZSH" being unset
authorAlexander Barton <alex@barton.de>
Sat, 26 Dec 2020 19:52:52 +0000 (20:52 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 26 Dec 2020 19:52:52 +0000 (20:52 +0100)
ax.zsh

diff --git a/ax.zsh b/ax.zsh
index f460ba6b2dc0b181918a2896afacf243177b7965..909c42fd752451e1b5af766a41edd94fa1880acf 100644 (file)
--- a/ax.zsh
+++ b/ax.zsh
@@ -191,14 +191,16 @@ fi
 [[ -n "$SHELL" ]] || export SHELL=$(command -v zsh)
 
 # Make sure that "AXZSH" variable is set and exported
-if [[ -z "$AXZSH" ]]; then
-       export AXZSH="$HOME/.axzsh"
-       if [[ -f "$HOME/.axzsh.debug" ]]; then
-               export AXZSH_DEBUG=1
-               echo "AXZSH=$AXZSH"
-               echo "AXZSH_DEBUG=$AXZSH_DEBUG"
-               echo "AXZSH_PLUGIN_D=$AXZSH_PLUGIN_D"
-       fi
+[[ -n "$AXZSH" ]] || export AXZSH="$HOME/.axzsh"
+
+# Check for "debug mode" ...
+if [[ -f "$AXZSH/debug" || -f "$HOME/.axzsh.debug" ]]; then
+       export AXZSH_DEBUG=1
+       echo "AXZSH=$AXZSH"
+       echo "AXZSH_DEBUG=$AXZSH_DEBUG"
+       echo "AXZSH_PLUGIN_D=$AXZSH_PLUGIN_D"
+       echo "AXZSH_ZLOGIN_READ=$AXZSH_ZLOGIN_READ"
+       echo "AXZSH_ZPROFILE_READ=$AXZSH_ZPROFILE_READ"
 fi
 
 if [[ "$script_type" = "zprofile" ]]; then