# /etc/profile: This file contains system-wide defaults used by
# all Bourne (and related) shells.

export MANPATH=/usr/man:/usr/local/man:/usr/local/share/man:.
export LESSOPEN="|lesspipe.sh %s"
export LESS="-M"

export INPUTRC=/etc/inputrc

PATH=".:/bin/:/usr/bin/:/usr/local/bin:"

if [ "$USER" = "root" ]; then
	PATH=$PATH"/sbin:/usr/sbin:/usr/local/sbin"
fi

if [ "$TERM" = "" -o "$TERM" = "unknown" ]; then
	TERM=linux
fi

PS1='\[\e[1;31m\][\u@\H\[\e[1;34m\] \W \[\e[1;32m\][j\j]\[\e[0m\]\[\e[1;31m\]\$>>>\[\e[0m\] '
PS2='\[\e[1;32m\]>>>\[\e[0m\] '

export PATH DISPLAY LESS TERM PS1 PS2

umask 022

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

stty -ixon

. /etc/environment
. /etc/aliases

