More debug prints converted

This commit is contained in:
2026-06-23 17:00:49 -04:00
parent abb0837ce1
commit c1ac83d115
4 changed files with 23 additions and 47 deletions
+13 -29
View File
@@ -42,9 +42,7 @@ set noding
set padhour
if( $?CSHENV_DEBUG ) then
echo "TCSH Featureset probed..."
endif
_debug "TCSH Featureset probed..."
#The history size for your shell can be set globally now
@@ -59,22 +57,20 @@ alias safe_source 'eval "if ( -f \!:1 ) then \\
source \!:1 \\
endif"'
if( $?CSHENV_DEBUG ) echo "Setting up optional session sourcing mechanism."
_debug "Setting up optional session sourcing mechanism."
# These reload_session and `__load_session` aliases ar incredibly delicate. They drives
# the whole optional session mechanism -- DO NOT MESS WITH IT LIGHTLY!
alias __load_session safe_source tcshrc.session.\$CSHENV_SESSION_PROFILE
if( $?CSHENV_DEBUG ) echo "Setting up optional session sourcing mechanism wrapper."
_debug "Setting up optional session sourcing mechanism wrapper."
alias reload_session 'eval "if ( \$?CSHENV_SESSION_PROFILE ) then \\
__load_session \\
endif"'
if( $?CSHENV_DEBUG ) echo "Setting change session alias..."
_debug "Setting change session alias..."
alias change_session setenv CSHENV_SESSION_PROFILE \!:1\;__load_session
if( $?CSHENV_DEBUG ) then
echo "TCSH safe-source alias constructed..."
endif
_debug "TCSH safe-source alias constructed..."
safe_source ${CSHENV_DIR}/tcshrc.conf
@@ -83,9 +79,7 @@ safe_source ${CSHENV_DIR}/tcshrc.conf
# This will figure out what system we're on and setup all
# system specific notions. From the sourced file,
# tcshrc.system.???? will be called
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.system"
endif
_debug "Trying to source tcshrc.system"
source ${CSHENV_DIR}/tcshrc.system
#For GNU ls(1) {From coreutils} and tcsh's color ls-F
@@ -99,30 +93,22 @@ endif
setenv CLICOLOR_FORCE
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.${CSHENV_SYSTEM}"
endif
_debug "Trying to source tcshrc.${CSHENV_SYSTEM}"
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
_debug "Trying to source tcshrc.aliases"
source ${CSHENV_DIR}/tcshrc.aliases
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.${CSHENV_HOSTNAME}"
endif
_debug "Trying to source tcshrc.${CSHENV_HOSTNAME}"
safe_source ${CSHENV_DIR}/tcshrc.${CSHENV_HOSTNAME}
if( $?CSHENV_ORGANIZATION ) then
safe_source ${CSHENV_DIR}/tcshrc.${CSHENV_ORGANIZATION}
endif
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.bindkeys"
endif
_debug "Trying to source tcshrc.bindkeys"
source ${CSHENV_DIR}/tcshrc.bindkeys
set path=( ${path} /usr/sbin /sbin )
@@ -130,16 +116,14 @@ set path=( ${path} /usr/sbin /sbin )
# TCSHRC Prompt is the LAST thing we do, since it's the entry to
# user interface
if( $?CSHENV_DEBUG ) then
echo "Trying to source tcshrc.prompt"
endif
_debug "Trying to source tcshrc.prompt"
source ${CSHENV_DIR}/tcshrc.prompt
safe_source ${CSHENV_DIR}/tcshrc.user
if( $?CSHENV_DEBUG ) echo "Loading session, if one is set"
_debug "Loading session, if one is set"
reload_session
if( $?CSHENV_DEBUG ) echo "Session loading done"
_debug "Session loading done"
###########################