# System wide environment
 
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
PS1="[(\u) \w]\\$ "

# Dash prompt setup
if [ $0 = "-dash" ] ; then
	PS1="\$ "
	if [ $(id -u) -eq 0 ] ; then
		PS1="# "
	fi
fi

USER="`id -un`"
LOGNAME=$USER

HISTSIZE=10000
HISTCONTROL=ignoredups

if [ -z "$INPUTRC" ] ; then
	INPUTRC=/etc/inputrc
fi

export PATH PS1 USER LOGNAME HISTSIZE INPUTRC

if [ $(id -u) -eq 0 ] ; then
	HOME=/root
	export HOME
	cd $HOME
fi

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

if [ -f /etc/bashrc ] ; then
	# Bash login shells run only /etc/profile
	. /etc/bashrc
fi

