umask 077
mesg n

texdir=/usr/share/local/xml/tex/TeXLive2007
PATH=/usr/bin:/usr/openwin/bin:/usr/dt/bin:/usr/local/X11/bin:/usr/ccs/bin:/usr/ucb
PATH=/usr/local/bin:$PATH
PATH=${texdir}/bin:$PATH
PATH=/usr/local/xml/bin:$PATH
PATH=/usr/sfw/bin:$PATH
PATH=/math/local/solaris/bin:$PATH
PATH=/math/local/bin:$PATH
PATH=~/bin:$PATH

HISTSIZE=1000
HISTFILE=~/.bash_history
HISTCONTROL=ignoredups
set -o noclobber notify ignoreeof

MANPATH=/usr/local/man:/usr/man:/usr/openwin/man:/usr/dt/man:/usr/local/X11/man:${texdir}/texmf/doc/man:/opt/SUNWspro/man:/usr/local/tex/man:/usr/local/perl-module/man:/usr/share/local/ucbman

PS1="\h% ";
XAPPLRESDIR=/usr/local/X11/lib/X11/app-defaults:/usr/openwin/lib/app-defaults:/usr/lib/X11/app-defaults:/usr/local/X11R4/lib/X11/app-defaults

if [ ! "$TERM" ]; then
    TERM=vt100
else
   echo "TERM on entry: $TERM"
fi

case $TERM in 
    xterms | xterm | vt102 | tvi950 )
    ;;
    dialup )
# Your terminal type at home goes here    
#       setenv TERM tvi950
    ;;
    * )    
        TERM=vt100
        echo -n "Terminal type? ($TERM) "
        if [ ! "$DT" ]; then
                read newterm
                if  [ x$newterm != x ]; then
                    TERM=$newterm
                fi
        fi
esac

EDITOR=emacs
VISUAL=emacs
LESS=eM
MAILPATH=/usr/spool/mail/$USER:/var/mail/$USER

# Place your aliases here.
alias back="cd -"
alias ll="ls -lgs"
alias h="history 23"
alias j="jobs -l"
alias mak="make -k 2>&1 > ERRS &"
alias motd="/bin/cat /etc/motd"
alias rmt="rm *~ .*~"
alias lo="logout"
alias logo="logout"

# Place your functions here.
function dir { ls -Flagsq $@ | more ; }
function here { /usr/ucb/ps -aux | grep $@ | more ; }
function viewman { nroff -man $@ | less ; }


export PATH MANPATH TERM EDITOR VISUAL PS1 PGPPATH XAPPLRESDIR 
export PAGER LESS WHOCMD ARCH

msgs -q
matm=/math/local/solaris/bin/matmsgs
if [ \( -f $matm \) -a \( -x $matm \) ] ; then
  matmsgs -q
fi
if [ -r "${HOME}/.bashrc" ] ; then
  source "${HOME}/.bashrc"
fi
