export ZDOTDIR=${XDG_CONFIG_HOME:-~/.config}/zsh
-### load site-specific
-[[ -f ${ZDOTDIR:-~}/.zshenv.local ]] && source ${ZDOTDIR:-~}/.zshenv.local
-
### fix broken term
if [[ ! -v TERM ]] {
TERM=xterm-256color >/dev/null 2>&1
_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
+ ### early zprofile sourcing for first shell even if not a login shell,
+ ### since Termux does not start login shell as first process
source ${ZDOTDIR:-~}/.zprofile
}