forked from Bright-Computing/bic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathz00_lmod.csh
51 lines (41 loc) · 1.53 KB
/
z00_lmod.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- shell-script -*-
########################################################################
# This is the system wide source file for setting up
# modules:
#
########################################################################
set MY_NAME="/usr/share/lmod/lmod/init/cshrc"
# Skip Lmod initialization if USER_IS_ROOT or LMOD_DISABLE is set
if ( $?USER_IS_ROOT || $?LMOD_DISABLE ) then
exit
endif
if ( ! $?MODULEPATH_ROOT ) then
if ( $?USER) then
setenv USER $LOGNAME
endif
set UNAME = `uname`
setenv LMOD_sys $UNAME
setenv LMOD_arch `uname -m`
if ( "x$UNAME" == xAIX ) then
setenv LMOD_arch rs6k
endif
setenv TARG_TITLE_BAR_PAREN " "
setenv LMOD_SETTARG_CMD :
setenv LMOD_COLORIZE yes
setenv LMOD_PREPEND_BLOCK normal
setenv MODULEPATH_ROOT "/usr/share/modulefiles"
# setenv MODULEPATH `/usr/share/lmod/lmod/libexec/addto --append MODULEPATH $MODULEPATH_ROOT/$LMOD_sys $MODULEPATH_ROOT/Core`
# setenv MODULEPATH `/usr/share/lmod/lmod/libexec/addto --append MODULEPATH /usr/share/lmod/lmod/modulefiles/Core`
setenv MODULESHOME "/usr/share/lmod/lmod"
setenv BASH_ENV "$MODULESHOME/init/bash"
#
# If MANPATH is empty, Lmod is adding a trailing ":" so that
# the system MANPATH will be found
if ( ! $?MANPATH ) then
setenv MANPATH :
endif
setenv MANPATH `/usr/share/lmod/lmod/libexec/addto MANPATH /usr/share/lmod/lmod/share/man`
endif
if ( -f /usr/share/lmod/lmod/init/csh ) then
source /usr/share/lmod/lmod/init/csh
endif