# exported; for example, this previously happened with sway without a
# display manager or launcher in front of it
export _sev_first_display=
- _sev_refresh_gpgagent= source ${ZDOTDIR:-~}/.zprofile
+ _sev_refresh_gpgagent=
+ [[ ! -o login ]] && source ${ZDOTDIR:-~}/.zprofile
} elif [[ ! -o login && $SHLVL -eq 1 && ${+TERMUX_VERSION} -eq 0 ]] {
### early zprofile sourcing for first shell even if not a login shell
source ${ZDOTDIR:-~}/.zprofile
# XXX: XDG specifies ~/.local/bin as the only user-writable dir for
# executables, but we specify more; technically this is against spec
syspath=("$path[@]")
- path=(~/{.local/,}{s,}bin
- {~/.local,{$PREFIX,}{,/opt,/usr{,/local,pkg}}}/sbin
- {~/.local,{$PREFIX,}{,/opt,/usr{,/local,pkg}}}/bin
+ path=({{${_sev_home:-~},~}{/.local,},{$PREFIX,}{,/opt,/usr{,/local,/pkg}}}/{s,}bin
/usr/{X11R{7,6}/bin,games})
((len=$#path))
path=("$path[@]" "$syspath[@]")