# profile     Default shell profile configuration
#
# WARNING:
# do not modify this file as it will be replaced upon package updates
# use /etc/profile.d/ instead

if [ -r /etc/sysconfig/i18n ]; then
   . /etc/sysconfig/i18n
   [ "$LC_ALL" ] || LC_ALL=$LANG
   export LANG LC_ALL
fi

if [ -r /etc/sysconfig/proxy ]; then
   . /etc/sysconfig/proxy
   export http_proxy https_proxy ftp_proxy
fi

loginsh=1

# Make path more comfortable
PATH=/usr/bin:/usr/local/bin
export PATH

umask 022

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/usr/bin/hostname`
HISTSIZE=1000
export USER LOGNAME MAIL HISTCONTROL HOSTNAME HISTSIZE

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
   INPUTRC=/etc/inputrc
fi
export INPUTRC

# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N
export NLSPATH

for f in /etc/profile.d/*.sh ; do
   [ -r $f ] && . $f
done
unset f

export PATH
