Reworked sourcing order to something more sensible

This commit is contained in:
ADAM David Alan Martin
2014-01-27 19:03:04 -05:00
parent 6451f20c6d
commit f0bd019a82

22
tcshrc
View File

@ -82,21 +82,18 @@ endif
setenv LSCOLORS 'ExFxcxdxbxegedabagacEB'
setenv CLICOLOR_FORCE
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.aliases"
endif
source ${CSHENV_DIR}/tcshrc.aliases
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.bindkeys"
endif
source ${CSHENV_DIR}/tcshrc.bindkeys
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.${CSHENV_SYSTEM}"
endif
safe_source ${CSHENV_DIR}/tcshrc.${CSHENV_SYSTEM}
# Having figured out the system, then we can load specific aliases
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.aliases"
endif
source ${CSHENV_DIR}/tcshrc.aliases
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.${CSHENV_HOSTNAME}"
endif
@ -106,6 +103,11 @@ if( $?CSHENV_ORGANIZATION ) then
safe_source ${CSHENV_DIR}/tcshrc.${CSHENV_ORGANIZATION}
endif
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.bindkeys"
endif
source ${CSHENV_DIR}/tcshrc.bindkeys
set path=( ${path} /usr/sbin /sbin )
# TCSHRC Prompt is the LAST thing we do, since it's the entry to