]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/99_zlogin/99_zlogin.zshrc
Fix catching up the "ax-io", "zprofile" and "zlogin" stages
[ax-zsh.git] / core / 99_zlogin / 99_zlogin.zshrc
index bdb106b2bde5a47f50df4a60026a305b0b641e24..0133012a6fb98e8b6b9c5674adb9cbf06d5fcdcd 100644 (file)
@@ -1,14 +1,15 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
-# 99_zlogin.zshrc: Make sure zpfofile files are read
+# 99_zlogin.zshrc: Make sure zlogin files are read
 
 [[ "$AXZSH_ZPROFILE_READ" = "2" ]] || return
 
-# No "zlogin" files have been read in already! So most probably this
-# ZSH instance hasn't been called from an ax-zsh enabled ZSH!
+# AXZSH_ZPROFILE_READ is set to 2 when the "ax-io" and "zprofile" were caught
+# up because this is not a login shell and the environment was missing. In this
+# case the "zlogin" stage will be missing in the end as well and therefore we
+# run the "zlogin" stage manually, too.
+[[ -n "$AXZSH_DEBUG" ]] && echo "» 99_zlogin.zshrc:"
 
-[[ -n "$AXZSH_DEBUG" ]] && echo "» 99_zlogin.zsh:"
-for plugin ($plugin_list); do
-       axzsh_load_plugin "$plugin" "zlogin"
-done
+axzsh_handle_stage "99_zlogin.zshrc" "zlogin"
 AXZSH_ZLOGIN_READ=2
-[[ -n "$AXZSH_DEBUG" ]] && echo "» 99_zlogin.zsh (end)"
+
+[[ -n "$AXZSH_DEBUG" ]] && echo "» 99_zlogin.zshrc (end)"