-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclear_env
More file actions
executable file
·51 lines (47 loc) · 967 Bytes
/
Copy pathclear_env
File metadata and controls
executable file
·51 lines (47 loc) · 967 Bytes
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
function clear_env
{
#unset PATH
unset UE_SHOWTOP_IN_OLD
unset BLOCKPATH
unset DEFAULT_PATH
unset PRIMPATH
unset ICPROCESS
unset ARENA
unset CUBBY_DIR
unset CUBBY_TYPE
unset CUBBY_DIRS
unset CUBBY_TAG
unset TSUB_ENV
unset TSUB_ENV_OPT
unset CB_DBENV
unset UE_SHOWTOP_IN_OLD
unset SCRIPTPATH
unset CBROOT
unset SCIP_CONF
for e in `env | awk -F= '{print $1}' -`
do
if [ "${e}" == "PATH" -o "${e}" == "MANPATH" \
-o "${e}" == "SHELL" \
-o "${e}" == "HOME" \
-o "${e}" == "TERM" \
-o "${e}" == "TZ" \
-o "${e}" == "PS1" \
]
then
continue
fi
echo "Unset ${e}"
unset ${e}
done
if [ `uname -n` == "hpesfem" ]
then
export PATH=$PATH:"/users/red/bin"
else
export PATH=$PATH:"/nfs/hpesfem/users/red/bin"
fi
}
clear_env;
unset CADROOT
unset ESLROOT
unset BLOCKPATH
set -o emacs