aboutsummaryrefslogtreecommitdiffstats
path: root/.tcsh/heainit.csh
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-06 15:47:05 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-06 15:47:05 +0800
commita804d0436a98faffb6d3179697aaee9473548593 (patch)
tree451fc2388c626a37d162905601bd5a5e5c4cf6e0 /.tcsh/heainit.csh
parentdba767e8ff1599a0b4cf8fb3dc06ac0cce727748 (diff)
downloaddotfiles-a804d0436a98faffb6d3179697aaee9473548593.tar.bz2
Update tcsh configurations
* Clean up tcshrc * Clean up tcshrc.local * Update tcsh/{ciaoinit,heainit}.csh
Diffstat (limited to '.tcsh/heainit.csh')
-rw-r--r--.tcsh/heainit.csh11
1 files changed, 5 insertions, 6 deletions
diff --git a/.tcsh/heainit.csh b/.tcsh/heainit.csh
index c1a8a04..ddd6c1c 100644
--- a/.tcsh/heainit.csh
+++ b/.tcsh/heainit.csh
@@ -2,14 +2,13 @@
#
# HEASOFT settings
#
-unset printexitvalue
-set HEA_STATE=`echo $PATH | tr ':' '\n' | grep 'heasoft'`
-if ( "x${HEA_STATE}" == "x" ) then
- source $HEADAS/headas-init.csh
-endif
-unset HEA_STATE
+source $HEADAS/headas-init.csh
# set HEA_LDLIB="`echo $LD_LIBRARY_PATH | tr ':' '\n' | grep 'heasoft' | head -n 1`"
+if ( $?LD_LIBRARY_PATH_BAK ) then
+ setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH_BAK}"
+endif
+
exit 0