2 [[ -f ~/.zshenv.local ]] && source ~/.zshenv.local
4 # manually source .zprofile if we're not a login shell and it's a good idea
5 # see comments in .zprofile for rationale
7 if [[ -v _sev_olduser && $_sev_olduser != $USERNAME ]] {
8 # set up some user-dependent stuff since we switched users
9 _sev_switched_users= source ${ZDOTDIR:-~}/.zprofile
10 } elif [[ $SHLVL == 1 ]] {
11 # ensure profile is loaded for toplevel shells; should hopefully be 1
12 # under Xorg or cron, which is where this would be most useful
13 source ${ZDOTDIR:-~}/.zprofile
16 export _sev_olduser=$USERNAME
18 # vim: et sts=4 sw=4 ts=8 tw=79