-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc_system.bash
executable file
·43 lines (33 loc) · 1.1 KB
/
bashrc_system.bash
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
# begin .bashrc/.kshrc
if [[ -z "$SHIFTER_RUNTIME" ]]
then
# ZZ 20150915 to fix the NERSC_HOST undefined error from the batch prologue, e.g., CCM
if [ -z "$NERSC_HOST" ]; then export NERSC_HOST=`cat /etc/clustername`;fi
# need this to define $PWD, else many scripts will fail when
# attempting "pwd" or ".." & the default login shell is csh
pwd >/dev/null
# Host-specific settings
#export INTEL_LICENSE_FILE=28518@dmv1.nersc.gov:28518@dmv.nersc.gov
# ZZ 20150915 to fix the undefined module command error for some bash invocations
if [ "$NERSC_HOST" = "edison" -o "$NERSC_HOST" = "cori" ]; then
if [ -z "`type module 2>/dev/null`" ]; then
. /opt/modules/default/etc/modules.sh
fi
fi
##11/16/2015
#if [ "$NERSC_HOST" = "cori" ]; then
# ulimit -s unlimited
#fi
#for white boxes 4/26/2016
if [ "$NERSC_HOST" = "carl" ]; then
. /usr/common/software/etc/modules/modules.sh
ulimit -s unlimited
fi
if [ "$NERSC_HOST" = "cori" ]; then
if [ -z "$SCRATCH" ]; then
export SCRATCH=/global/cscratch1/sd/$USER
fi
fi
$WFIRST_ROOT/bashrc_ext_system.bash
fi
# end .bashrc/.kshrc