-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sh_sys_config
39 lines (31 loc) · 1.05 KB
/
.sh_sys_config
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
if ip addr show | grep --quiet ' 134\.253\.'
then # 134.253 address found
cat >~/.gitconfig.local <<EOF
[user]
email = [email protected]
EOF
export http_proxy=http://wwwproxy.sandia.gov:80/
export https_proxy=https://wwwproxy.sandia.gov:80/
export ftp_proxy=ftp://wwwproxy.sandia.gov:80/
export no_proxy="localhost,127.0.0.1,.sandia.gov"
fi
if command -v module > /dev/null; then
module restore 2>/dev/null
module list
fi
if [ "$HOSTNAME" = arrakis ]; then
cat >~/.gitconfig.local <<EOF
[user]
email = [email protected]
EOF
export PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH
export EDITOR=emacsclient
#TODO if [ -f /opt/opensplice/HDE/x86_64.linux2.6/release.com ]; then
#TODO . /opt/opensplice/HDE/x86_64.linux2.6/release.com
#TODO elif [ -f /opt/opensplice/HDE/x86_64.linux2.6-dev/release.com ]; then
#TODO . /opt/opensplice/HDE/x86_64.linux2.6-dev/release.com
#TODO fi
#TODO if [ ! -d /mnt/caladan/Desktop ] ; then
#TODO mount /mnt/caladan &
#TODO fi
fi