diff options
Diffstat (limited to 'profile.d/msec.csh')
-rwxr-xr-x | profile.d/msec.csh | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/profile.d/msec.csh b/profile.d/msec.csh index 0a6bd70..5ff87ab 100755 --- a/profile.d/msec.csh +++ b/profile.d/msec.csh @@ -24,19 +24,9 @@ endif # using unhash *after modifying PATH* fixes the pb # So while modifying the PATH, do not rely on the PATH until unhash is done -if ! { (echo "${PATH}" | /bin/grep -q /usr/X11R6/bin) } then - setenv PATH "${PATH}:/usr/X11R6/bin" -endif - -if ! { (echo "${PATH}" | /bin/grep -q /usr/games) } then - setenv PATH "${PATH}:/usr/games" -endif - -if ( ${?SECURE_LEVEL} ) then - if ( ${SECURE_LEVEL} <= 1 ) then - if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then - setenv PATH "${PATH}:." - endif +if ( ${?ALLOW_CURDIR_IN_PATH} == 'yes' ) then + if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then + setenv PATH "${PATH}:." endif endif |