#############################################################################
##
## .tcshrc		2Sep2001, Simos Xenitellis (simos@hellug.gr)
##

## This is the basic new .tcshrc file, part of the TCSHRC project
## at http://tcshrc.sourceforge.net

# Thanks to Heather Downs <heather@netlens.com> for the "set -f -l" flags
# "set -f" adds a variable in _front of the list, keep one copy
# "set -l" adds a variable at the end(_last) of the list, keep one copy
#    paths with lower priority than system paths like /bin /sbin,,,
# Thanks to Spencer White <spencer@nexthost.com> for "if root" condition

set -l path = ( $path /usr/local/kde/bin )

########################################################################
#         skip remaining setup if not an interactive shell
if ($?USER == 0 || $?prompt == 0) exit

set -l path = ( $path $home/bin )
#        settings  for interactive shells
source $HOME/.tcsh/set

#        aliases   for interactive shells
source $HOME/.tcsh/alias

#        bindkeys   for interactive shells
source $HOME/.tcsh/bindkey

#        completions for interactive shells
source $HOME/.tcsh/complete

#echo %G
#        commands for interactive shells
if ( $term == xterm-color ) alias postcmd  'echo -n "]2;${HOST}:$cwd "'

if ( -e /usr/local/share/GNUstep/System/Library/Makefiles/GNUstep.csh ) then
	source /usr/local/GNUstep/System/Library/Makefiles/GNUstep.csh
endif

if ( -x /usr/local/bin/keychain ) then
	eval `/usr/local/bin/keychain --eval --agents ssh`
endif

alias precmd "if ( -e $HOME/.ssh-env) source $HOME/.ssh-env"
