#
# /etc/zshenv is sourced on all invocations of the
# shell, unless the -f option is set.  It should
# contain commands to set the command search path,
# plus other important environment variables.
# .zshenv should not contain commands that product
# output or assume the shell is attached to a tty.
#

# Set TMPPREFIX to ~/tmp/zsh and create ~/tmp if it does not exist.
# The same way as /etc/profile.d/tmpdir.sh.
if [ -d "$HOME/tmp" -a -w "$HOME/tmp" ]; then
	export TMPPREFIX="$HOME/tmp/zsh"
elif install -d -m700 -- "$HOME/tmp" >/dev/null 2>&1; then
	export TMPPREFIX="$HOME/tmp/zsh"
fi

# Path.
typeset -U path
if (( EUID == 0 )); then
    path=(/sbin /usr/sbin)
fi
export X11HOME=/usr/X11R6
path=($path $X11HOME/bin /bin /usr/bin /usr/local/bin)
