#
# /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.
#

PATH="$PATH:/usr/X11R6/bin"

if [ `id -u` -eq 0 ]; then
  path=(/sbin /usr/sbin /bin /usr/bin)
fi

ulimit -c 1000000
if [[ `id -gn` -eq `id -un` && `id -u` -gt 14 ]]; then
        umask 002
else
        umask 022
fi

export USER=`id -un`
export LOGNAME=$USER
export MAIL=/var/spool/mail/$USER

export HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILE=~/.zshhistory
SAVEHIST=1000

export INPUTRC=/etc/inputrc

# Shell functions
setenv() { export $1=$2 }     # csh compatibility

local i

for i in /etc/profile.d/*.sh ; do
	if [[ -x $i ]]; then
		. $i
	fi
done

