2 [[ -f ~/.zshenv.local ]] && source ~/.zshenv.local
5 if [[ -o interactive && $#terminfo -eq 0 ]] {
7 TERM=xterm-256color >/dev/null 2>&1
8 print -P "%F{red}!!! Can't find terminfo for $_oldterm, using $term%f"
13 ### cd on login shell for convenience
16 if [[ ! -v _sev_first_display && ( -v DISPLAY || -v WAYLAND_DISPLAY ) ]] {
17 # this is to allow gpg and pinentry env to be updated
18 # XXX: will be sourced by every new child shell if zsh is not used to
19 # start the graphical session, but since .zprofile is light that
20 # shouldn't cause a noticeable performance impact
21 # NOTE: above happens with sway without a display manager or launcher
22 export _sev_first_display=
23 source ${ZDOTDIR:-~}/.zprofile
24 export _sev_first_display=0
25 } elif [[ $SHLVL == 1 ]] {
26 ### early zprofile sourcing for first shell
27 # NOTE: ensure profile is loaded for toplevel shells; should hopefully be 1
28 # under some Xorg or cron implementations, which is where this would be most useful
29 source ${ZDOTDIR:-~}/.zprofile
33 # vim: et sts=4 sw=4 ts=8 tw=79