#
# This is HRS's startup-script for tcsh
#
# $Id$

if ( -f $HOME/.sh/.setenv ) then
    eval `$HOME/.sh/.setenv -c`
endif

if ($?prompt) then
    # An interactive shell -- set some stuff up

    set filec
    set history = 1000
    set savehist = 1000
    set mail = (/var/mail/$USER)
    set ignoreeof
    set dspmbyte = euc
    set echo_style = bsd
    unset ampm

    # make mail(1) happy
    setenv crt 24
    
    ### set autolist

    ### set prompt string
    set promptchars='%#'
    set prompt="`$WHOAMI`@%m %# "

    ### title line decoration
    if ( $?tcsh && $?TERM ) then
        switch ($TERM)
            case xterm:
            case kterm:
            case dtterm:
                alias precmd 'echo -n ]2\;$TERM - `$WHOAMI`@`$HOSTNAME`:$PWD]1\;`$WHOAMI`@`$HOSTNAME`:$PWD'
        endsw
    endif
endif
