#!/bin/csh -f
#
#  BIT's csh login profile
#
setenv SHELL /bin/csh

stty line 1 erase '^H' kill '^U' intr '^C' susp '^Z' dsusp '^Y' echoe 

if (! $?TERM) setenv TERM ""

if (("$TERM" == "dialup") || ("$TERM" == "network") || \
    ("$TERM" == "unknown") || ("$TERM" == "")) then
    echo -n 'TERM = (dumb) '
    set term = "$<"
    if ("$term" == "") set term = dumb
    setenv TERM $term
endif
echo "TERM = ($TERM)"
echo ""

if ( -f /tmp/maxup_flag ) then
  echo "User process count already increased for BIT."
  echo ""
else
  echo "Increasing user process count for BIT."
  ~/util.d/maxup > /dev/null
  cat /dev/null > /tmp/maxup_flag
  echo ""
endif
