# /etc/zsh/zshenv — read by every zsh, interactive or not, before anything else.
#
# Only things that must be true for a non-interactive shell as well. schinit
# sets the console shell's environment from its job manifest, but a zsh started
# any other way (a script, an ssh session one day) gets no such help.

: ${TERM:=linux}
: ${HOME:=/root}
: ${PATH:=/bin:/usr/bin}

# UTF-8, said out loud. zsh's line editor handles multibyte input either way --
# musl decodes UTF-8 whatever the locale claims -- but everything that branches
# on $LANG to decide whether it may print a non-ASCII character needs this set,
# and an unset LANG reads as "ASCII only".
if [ -f /etc/locale.conf ]; then
    . /etc/locale.conf
fi
: ${LANG:=C.UTF-8}

export TERM HOME PATH LANG

# Where zsh's own functions live. Set here rather than compiled in so a second
# version can be installed beside this one without either moving.
fpath=(/usr/share/zsh/5.9/functions $fpath)
