# you probably have something that looks a bit like this in your
# .login file - change it to reflect your habits!

if ($?term) then
        if ($term =~ *term) setenv XWINDOWS true
endif

if ($?prompt) then
    set temp='who am i'
  set fromhost=`$temp|cut -s -d"(" -f2|cut -s -d. -f1 | tr '[A-Z]' '[a-z]'`
  set noglob
  if ($?XWINDOWS) then
    if (! $?DISPLAY) then
        setenv DISPLAY $fromhost\:0.0
    endif
    switch ($fromhost)
     case crystals:
       stty rows 24        # for me this works automatically, but apparently
       breaksw             # not for everyone...
    endsw
  else
    switch ($fromhost)
      case ling-MJH-kbox*:
        eval `tset -s -I -Q vt100`
        breaksw
      case tip-mp*-ncs*:
        eval `tset -s -I -Q vt100`
        stty rows 48        # if you always use a 48-line window from home
        breaksw
      default:
        eval `tset -s -I -Q ?vt100`
    endsw
  endif
  set term=$TERM
  unset noglob
endif

