-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
executable file
·59 lines (51 loc) · 1.39 KB
/
.bashrc
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
52
53
54
55
56
57
58
# For information on ARMs infrastructure refer to the training document:
# http://wiki.arm.com/Sysadmin/ClusterEnvironmentTraining
# modulesinfrastructuretraining.pptx
#######################################
#
# => USER SET => LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=<user setting>
# - user setting will be appended to $LD_LIBRARY_PATH
#######################################
#
# => USER SET => PATH
# export PATH=<user settings>
# - user setting will be appended to $PATH
#######################################
#
# => STANDARD shell init & cluster access
#######################################
SYSTEM_SWITCHED=0
export RHE_MAJOR_VER="$(uname -r | sed -n 's/.*el\(.\).*/\1/p')"
function rhe_ver
{
echo "${RHE_MAJOR_VER}"
}
function rhe_ver_full
{
echo "rhe${RHE_MAJOR_VER}-${SYSTEM_ARCH}"
}
if [ -z "${RHE_MAJOR_VER}" ] || [ "${RHE_MAJOR_VER}" != "$(rhe_ver)" ]
then
SYSTEM_SWITCHED=1
fi
if [ -z "${SYSTEM_ARCH}" ] || [ "${SYSTEM_ARCH}" != "$(uname -m)" ]
then
SYSTEM_SWITCHED=1
fi
export SYSTEM_SWITCHED
export SYSTEM_ARCH="$(uname -m)"
export XDG_DATA_HOME="${HOME}/.local/$(rhe_ver_full)/share"
export PYTHONUSERBASE="${HOME}/.local/$(rhe_ver_full)"
export INSTALL_PREFIX="${HOME}/tools/$(rhe_ver_full)"
case $- in
*i*)
. "${HOME}/.bashfuncs"
finalise_paths
;;
esac
export LC_ALL=en_GB.utf8
export LANG=C
export GDM_LANG=C
export LC_COLLATE=C
export LANGUAGE=en_GB