##setenv VERBOSE_INIT

if ( $?VERBOSE_INIT ) echo "sourcing $HOME/.tcshrc..."

# Order tcsh uses for dotfiles:
#	/etc/csh.cshrc		always
#	/etc/csh.login		login shells
#	.tcshrc			always
#	.cshrc			if .tcshrc weren't present	csh too
#	.login			login shells			csh too


# try this out new...
#bind emacs
bindkey -e


if ( -f /usr/local/lib/.tcshrc ) then
  # this local script calls .cshrc
  # (it also sets up ARCH, MACHINE, OS; though I do this myself now)
  source /usr/local/lib/.tcshrc
else
  source $HOME/.cshrc
endif


unset histfile
unset autologout
bindkey ? self-insert-command
bindkey "^I" complete-word
bindkey "^[^I" list-choices 

# watch for logins/logouts
set watch = '(1 grg any polina any jsd any)'


if ( $?VERBOSE_INIT ) echo "done with $HOME/.tcshrc..."
