
# ե뿷Υѡߥåޥ
umask 022

# եǤʤ褦ˤ
limit core 0

# Ķѿѥץեɹ
if (-f     ~/.environment) then
    source ~/.environment
endif

# ѥѥץեɹ
set path=($HOME/bin /usr/local/srd/bin /usr/local/bin /usr/sbin /usr/bsd /sbin /usr/bin /usr/bin/X11 /opt/netscape)
if (-f     ~/.setpath) then
    source ~/.setpath
endif

#
# 鲼ϡץץȾ֤λΤ
#
if ( $?ENVONLY || (! $?prompt) ) then
    exit 0
endif


# ե̾䴰Ѥ(tcshǤ̵)
set filec

# jobλΤ餻
set notify

# 쥯ξ
# (`>' Τ `>!' ȤжŪ˾Ǥ )
set noclobber

# ҥȥꥵ/֥ҥȥꥵ
set history = 500
set savehist = 500

# tcsh
#list possibilities on an ambiguous completion.
set autolist
# 䴰Ȥ̵뤹륵եå
set fignore = (.o .out \~)
# ҥȥΤ֤õ
set histdup = erase
# Ǥʤơɽ
set printexitvalue
# `rm *' ȡʹƤ
set rmstar
# 䴰̵λ˥ӡפĤ餵ʤ
set nobeep

# ⡼ȥǤʤ󥷥Ǥ ^D ǽλʤ褦ˤ
if ( $?loginsh && (! $?REMOTEHOST)) then
    set ignoreeof
else
    unset ignoreeof
endif

# ץץȤ(ʰ)
if ( -o /bin/su ) then
    set prompt="`hostname` \!# "
else
    set prompt="`hostname` \!% "
endif

if ( $?tcsh ) then
    # tcsh Ѥʥ
    if ( -r    /usr/local/srd/env/tcsh_bindkey ) then
	source /usr/local/srd/env/tcsh_bindkey
    endif
    if ( -f    ~/.tcshrc.bindkey) then
	source ~/.tcshrc.bindkey
    endif
    if ( -f    ~/.complete) then
	source ~/.complete
    endif
    set histfile=~/.historys/.history-$HOST-$tty
else
    set histfile=~/.history.$HOST
endif

if (    -r ~/.setprompt) then
    source ~/.setprompt
endif

if (    -r /usr/local/srd/env/aliases ) then
    source /usr/local/srd/env/aliases
endif
if (    -r ~/.aliases) then
    source ~/.aliases
endif

if (    -r ~/.stty) then
    source ~/.stty
endif

#
# Emacs椫ƤФ줿ν
# tcshιԽǽ̵ˤ
#  ^M ɽʤ褦ˤ
if ($?EMACS) then
    if ("$EMACS" == t) then
	if ($?tcsh) unset edit
	stty nl
	stty -onlcr
    endif
endif

#if (-f     ~/.extension) then
#    source ~/.extension
#endif


# [NumLock]ξ֤˴طʤƥ󥭡ѤǤ褦ˤ
#if (     -r /usr/local/srd/env/xmodmap_NoNumLock) then
#    xmodmap /usr/local/srd/env/xmodmap_NoNumLock
#endif
# tcsh Ѥʥ
if ( $?tcsh ) then
    if ( -r    /usr/local/srd/env/tcsh_bindkey ) then
        source /usr/local/srd/env/tcsh_bindkey
    endif
endif
# [CapsLock]Ⱥ[Ctrl]ΥƤؤ
#if (     -r /usr/local/srd/env/xmodmap_CapCtrl) then
#    xmodmap /usr/local/srd/env/xmodmap_CapCtrl
#endif
