# miner's .profile file (adapted from the basic .default profile)

# -----------------------------------------------------------------------------
# Set up the path.
# -----------------------------------------------------------------------------

PATH=/bin:/usr/bin:/etc:/usr/etc:$HOME/bin:.:

export PATH

# -----------------------------------------------------------------------------
# Execute the Shared Segment Manager User Daemon.
# -----------------------------------------------------------------------------

# /etc/shmuser

# -----------------------------------------------------------------------------
# Check for mail.
# -----------------------------------------------------------------------------

if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
  then echo "$MAILMSG"      # operation, the Shell checks
fi                          # periodically.

# -----------------------------------------------------------------------------
# Don't know what the heck this does, but it was there so I left it in.
# -----------------------------------------------------------------------------

ALTNUM=YES;export ALTNUM

# -----------------------------------------------------------------------------
# Define the destructive backspace key.
# -----------------------------------------------------------------------------

stty erase '^H'

# -----------------------------------------------------------------------------
# Turn down the sound and turn off the keyboard clack.
# -----------------------------------------------------------------------------

# sound -lq

# -----------------------------------------------------------------------------
# Set up MANPATH so man can find the man pages
# -----------------------------------------------------------------------------

MANPATH=/usr/man:/usr/local/man; export MANPATH

# -----------------------------------------------------------------------------
# Setup epath for E3AIX editor.
# -----------------------------------------------------------------------------

# epath=.:/usr/lpp/e3aix; export epath

# -----------------------------------------------------------------------------
# Set the X environment.
# -----------------------------------------------------------------------------

# XENVIRONMENT=$HOME; export XENVIRONMENT

# -----------------------------------------------------------------------------
# Set ENV so each new ksh term will pick up defaults in .kshrc
# -----------------------------------------------------------------------------

ENV=$HOME/.kshrc; export ENV

# -----------------------------------------------------------------------------
# Do some checking for the terminal type logging in, and set up defaults
# -----------------------------------------------------------------------------

SERIAL_LINE=`tty | grep tty`

if  [ -z "$SERIAL_LINE" ] ; then  # if not a serial tty port
   TERM=hft
else
# login on a tty line use tset to query and set terminfo
   TERM=vt100
   echo " What type of terminal are you using ? "
   export TERM ; TERM=`tset - \?$TERM`
   # repeat until a recognized terminal type
   while  [ -z "$TERM" ] ; do
      export TERM ; TERM=`tset - \?$TERM`
   done
fi

TERMTYPE=`tty | grep hft`

if [ -n "$TERMTYPE" ] ; then
   sound -lq
   export TERM=hft
   export COLUMNS=`termdef -c`
   export LINES=`termdef -l`
fi

# -----------------------------------------------------------------------------
# Break open a cookie
# -----------------------------------------------------------------------------

echo
echo Today\'s fortune:
echo
/usr/games/fortune
echo
