# profile Default shell profile configuration # # Copyright (c) 2003-2011 by Silvan Calarco # Copyright (c) 2003-2008 by Davide Madrisan # # 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 # Users generally won't see annoyng core files [ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1 # Make path more comfortable PATH=/bin:/usr/bin:/usr/local/bin if [ "$UID" = 0 ]; then [ -d /opt/gnome/sbin ] && PATH=$PATH:/opt/gnome/sbin [ -d /opt/kde/sbin ] && PATH=$PATH:/opt/kde/sbin [ -d /opt/kde3/sbin ] && PATH=$PATH:/opt/kde3/sbin PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH fi for dir in /opt/bin \ /opt/gnome/bin \ /opt/kde/bin \ /opt/kde3/bin \ /usr/lib/qt3/bin do [ -d "$dir" ] && PATH=$PATH:$dir done unset dir export PATH umask 022 USER=`id -un` LOGNAME=$USER MAIL="/var/spool/mail/$USER" HISTCONTROL=ignoredups HOSTNAME=`/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