]> arthur.barton.de Git - ax-zsh.git/blobdiff - ax.zsh
The "debug mode" does not depend on "AXZSH" being unset
[ax-zsh.git] / ax.zsh
diff --git a/ax.zsh b/ax.zsh
index 23eda0166f99d31368b2f0e19cec0de2f5acaef1..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
@@ -225,3 +227,6 @@ axzsh_handle_stage "$script_name" "$script_type"
 # Clean up ...
 unfunction axzsh_handle_stage axzsh_load_plugin
 unset script_name script_type
+
+# Hints for external installers:
+# - iTerm2: DON'T install "iterm2_shell_integration"!