Added original path check/sourcing.

Seems to not work. :-/

Requires tcshrc resource alias to change to startup hooks.
This commit is contained in:
2014-01-31 11:19:23 -05:00
parent 0c6b80c2fe
commit 62d27bf967

View File

@ -39,6 +39,15 @@ if( -c `tty` ) then
if( $?CSHENV_DEBUG ) then
echo "Going to source core tcshrc..."
endif
# Capture the original path, so that we don't
# keep infinitely expanding it.
if( $?CSHENV_ORIGINAL_PATH ) then
setenv PATH ${CSHENV_ORIGINAL_PATH}
else
setenv CSHENV_ORIGINAL_PATH ${PATH}
endif
source ${CSHENV_DIR}/tcshrc
endif