# /etc/profile

umask 022

# adjust some limits (see bash(1), look at "ulimit -a")
# all these things are now in /etc/limits and can be set per
# individual user, only "ulimit -v" must hbe set here...
if test -z "$KSH_VERSION" ; then
	ulimit -v 655360
fi

# PATH: where to search for programs
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin
test "$UID" = 0 && PATH=$PATH:/sbin:/usr/sbin
for DIR in /usr/openwin/bin ~/bin ; do
	test -d $DIR && PATH=$PATH:$DIR
done
# test "$UID" = 0 || PATH="$PATH:."
export PATH

# default news-server
NNTPSERVER=`cat /etc/nntpserver 2> /dev/null`
export NNTPSERVER

#
# set up the color-ls environment variables:
#
#if test -f ~/.dir_colors ; then
#	eval `dircolors ~/.dir_colors`
#elif test -f /etc/DIR_COLORS ; then
#	eval `dircolors /etc/DIR_COLORS`
#fi

# some good shortcuts at the sh prompt
#alias dir='ls -lF --color=tty'
#alias ls='ls -F --color=tty'
#alias ll='ls -lF --color=tty'
#alias la='ls -laF --color=tty'
#alias l='ls -laF --color=tty'
alias dir='ls -lF'
alias ls='ls -F'
alias ll='ls -lF'
alias la='ls -laF'
alias l='ls -laF'
alias o='less'
alias ..='cd ..'
alias ...='cd ../..'
alias rd=rmdir
alias md=mkdir
alias unix2dos='recode lat1:ibmpc'
alias dos2unix='recode ibmpc:lat1'
#alias which='type -p'

function startx { /usr/X11R6/bin/startx $* 2> ~/.X.err > ~/.X.out & }
 
if test -z "$TERM" -o "$TERM" = unknown ; then
	TERM=linux
	export TERM
fi

if test "$SHELL:t" = zsh ; then
	PS1="%m:%~%# "
elif test -n "$BASH_VERSION" ; then
	PS1='\h:\w \$ '
	#PS1='\u \w \$ '
fi

