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