]> arthur.barton.de Git - ax-zsh.git/blob - core/01_zprofile/01_zprofile.zshrc
01_zprofile.zshrc: Don't forget the "ax-io" stage!
[ax-zsh.git] / core / 01_zprofile / 01_zprofile.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 01_zprofile.zshrc: Make sure zpfofile files are read
3
4 [[ -z "$AXZSH_ZPROFILE_READ" ]] || return
5
6 # No "ax-io" and "zprofile" files have been read in already, looks like this is
7 # a non-login shell instance and not a (direct) child of a AX-ZSH enabled login
8 # shell! So we have to make sure everything is set up properly by reading in
9 # the "ax-io" and "zprofile" stages first!
10
11 [[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zsh:"
12
13 # Reset some environment variables, that could contain "garbage" ...
14 unset PS1
15
16 axzsh_handle_stage "01_zprofile.zsh" "ax-io"
17 axzsh_handle_stage "01_zprofile.zsh" "zprofile"
18 AXZSH_ZPROFILE_READ=2
19
20 [[ -n "$AXZSH_DEBUG" ]] && echo "» 01_zprofile.zsh (end)"