]> git.sev.monster Git - dotfiles.git/blame - base/.zshenv
in development
[dotfiles.git] / base / .zshenv
CommitLineData
79d4a356 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
6if [[ ! -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
c3608beb 14 }
d569f3f7 15}
79d4a356 16export _sev_olduser=$USERNAME
d569f3f7 17
79d4a356 18# vim: et sts=4 sw=4 ts=8 tw=79
This page took 0.108761 seconds and 4 git commands to generate.