]> git.sev.monster Git - dotfiles.git/blame - base/.zshenv
switch to sway/wayland, update zsh/mod, move files
[dotfiles.git] / base / .zshenv
CommitLineData
833b2af3 1### load site-specific
79d4a356 2[[ -f ~/.zshenv.local ]] && source ~/.zshenv.local
3
833b2af3 4### fix broken term
5if (( $#terminfo == 0 )) {
6 [[ -o interactive ]] &&
7 print -P "%F{red}!!! Can't find terminfo for $TERM, using xterm%f"
8 TERM=xterm
9}
10
11### early zprofile sourcing
12# NOTE: see comments in .zprofile for additional rationale for this
79d4a356 13if [[ ! -o login ]] {
14 if [[ -v _sev_olduser && $_sev_olduser != $USERNAME ]] {
15 # set up some user-dependent stuff since we switched users
833b2af3 16 # XXX: _sev_switched_users is no longer implemented
79d4a356 17 _sev_switched_users= source ${ZDOTDIR:-~}/.zprofile
18 } elif [[ $SHLVL == 1 ]] {
19 # ensure profile is loaded for toplevel shells; should hopefully be 1
20 # under Xorg or cron, which is where this would be most useful
21 source ${ZDOTDIR:-~}/.zprofile
c3608beb 22 }
833b2af3 23} else {
24 # for convenience
25 cd ~
d569f3f7 26}
79d4a356 27export _sev_olduser=$USERNAME
d569f3f7 28
79d4a356 29# vim: et sts=4 sw=4 ts=8 tw=79
This page took 0.039623 seconds and 4 git commands to generate.