# /etc/profile

# System wide environment and startup programs

PATH="$PATH:/usr/X11R6/bin:/usr/openwin/bin:."
PS1="\u@\h:\w \! % "

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

USER=`id -un`
LOGNAME=$USER
MAIL="$HOME/Mailbox"
export PGPPATH="$HOME/.pgp"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL

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

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
PS1="\u@\h:\w \! % "

alias cp='cp -i'
alias edit=vi
alias list=cat
alias ls='ls -Fx'
alias mv='mv -i'
alias proc="ps axu | grep -i"
alias rm='rm -i'
alias traceroute='/usr/sbin/traceroute'
alias which="type -path"
