Added original path check/sourcing.
Seems to not work. :-/ Requires tcshrc resource alias to change to startup hooks.
This commit is contained in:
@ -39,6 +39,15 @@ if( -c `tty` ) then
|
|||||||
if( $?CSHENV_DEBUG ) then
|
if( $?CSHENV_DEBUG ) then
|
||||||
echo "Going to source core tcshrc..."
|
echo "Going to source core tcshrc..."
|
||||||
endif
|
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
|
source ${CSHENV_DIR}/tcshrc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user