X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=core%2F01_zprofile%2F01_zprofile.zshrc;h=8e257cd46ca9159270c60145ff64b72b75fd9fc6;hb=HEAD;hp=732318d4dec27f9e4b31459e811518cdf56badfb;hpb=23f598c1302868e7330d48bae129e1c905ddb557;p=ax-zsh.git diff --git a/core/01_zprofile/01_zprofile.zshrc b/core/01_zprofile/01_zprofile.zshrc index 732318d..8e257cd 100644 --- a/core/01_zprofile/01_zprofile.zshrc +++ b/core/01_zprofile/01_zprofile.zshrc @@ -1,17 +1,21 @@ # AX-ZSH: Alex' Modular ZSH Configuration -# 01_zprofile.zshrc: Make sure zpfofile files are read +# 01_zprofile.zshrc: Make sure zprofile files are read [[ -z "$AXZSH_ZPROFILE_READ" ]] || return -# No "zprofile" files have been read in already! So most probably this -# ZSH instance hasn't been called from an ax-zsh enabled ZSH! +# No "zprofile" (and "ax-io") stage files have been read in already, so looks +# like this is a non-login shell instance but not a (direct) child of an AX-ZSH +# enabled login shell! This can happen in graphical terminals not starting a +# login shell, for example. So most probably some environment configuration is +# missing and we have to make sure everything is set up properly by reading in +# the "ax-io" and "zprofile" stages before continuing! +[[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zshrc:" # Reset some environment variables, that could contain "garbage" ... unset PS1 -[[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zsh:" -for plugin ($plugin_list); do - axzsh_load_plugin "$plugin" "zprofile" -done +axzsh_handle_stage "01_zprofile.zshrc" "ax-io" +axzsh_handle_stage "01_zprofile.zshrc" "zprofile" AXZSH_ZPROFILE_READ=2 -[[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zsh (end)" + +[[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zshrc (end)"