]>
Commit | Line | Data |
---|---|---|
7ddca96d | 1 | # load site-specific |
2 | [[ -f ~/.zshenv.local ]] && source ~/.zshenv.local | |
3 | ||
4 | # manually source .zprofile if we're not a login shell and it's a good idea | |
5 | # see comments in .zprofile for rationale | |
6 | if [[ ! -o login ]] { | |
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 | |
f11fbf9e | 14 | } |
b133dc92 | 15 | } |
7ddca96d | 16 | export _sev_olduser=$USERNAME |
b133dc92 | 17 | |
7ddca96d | 18 | # vim: et sts=4 sw=4 ts=8 tw=79 |