X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=core%2F01_zprofile%2F01_zprofile.zshrc;h=4ad618ae7d37c059771d525be5b9a49210639bb4;hb=e4570c9ebe26992cea2b8521928d5956d6f08e63;hp=7260cb6d46f877a1505bcf283dc8d0fd6a1c2706;hpb=f092bf23d1017fb4532df95551485154c396a8e7;p=ax-zsh.git diff --git a/core/01_zprofile/01_zprofile.zshrc b/core/01_zprofile/01_zprofile.zshrc index 7260cb6..4ad618a 100644 --- a/core/01_zprofile/01_zprofile.zshrc +++ b/core/01_zprofile/01_zprofile.zshrc @@ -3,14 +3,17 @@ [[ -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 "ax-io" and "zprofile" files have been read in already, looks like this is +# a non-login shell instance and not a (direct) child of a AX-ZSH enabled login +# shell! So we have to make sure everything is set up properly by reading in +# the "ax-io" and "zprofile" stages first! + +[[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zsh:" # Reset some environment variables, that could contain "garbage" ... unset PS1 -[[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zsh:" - +axzsh_handle_stage "01_zprofile.zsh" "ax-io" axzsh_handle_stage "01_zprofile.zsh" "zprofile" AXZSH_ZPROFILE_READ=2