-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
48 lines (35 loc) · 1.18 KB
/
profile
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
# add PATH for dotfiles project
#if [ -d "~/Projects/dotfiles/bin" ] ; then
# PATH="$PATH"
#fi
nodename=`uname -n`
# my JAVA stuff
if [ $nodename = "marcoz-desktop" ]; then
# desktop @ BC
export JDK6_HOME="/opt/Java/jdk1.6.0_45"
export JDK7_HOME="/opt/Java/jdk1.7.0_80"
export JDK8_HOME="/opt/Java/jdk1.8.0_112"
export JDK_HOME=$JDK8_HOME
export MAVEN_HOME="/opt/Maven/apache-maven-3.3.9"
arch="amd64"
NODE_JS_HOME=/opt/NodeJS/node-v4.4.1-linux-x64
elif [ $nodename = "castle" ]; then
# notebook
export JDK6_HOME="/opt/Java/jdk1.6.0_45"
export JDK7_HOME="/opt/Java/jdk1.7.0_80"
export JDK8_HOME="/opt/Java/jdk1.8.0_112"
export JDK_HOME=$JDK8_HOME
export MAVEN_HOME="/opt/Maven/apache-maven-3.3.9"
arch="i386"
NODE_JS_HOME=/opt/NodeJS/node-v4.4.1-linux-x86
fi
export JAVA_HOME=$JDK_HOME
export M2_HOME=$MAVEN_HOME
export MAVEN_OPTS="-Xms128m -Xmx1024m"
export PATH="~/Projects/dotfiles/bin:/opt/bin:$JAVA_HOME/bin:$MAVEN_HOME/bin:$NODE_JS_HOME/bin:$PATH"
# for firefox
MOZILLA_HOME=~/.mozilla
mkdir -p $MOZILLA_HOME/plugins
ln -s -f $JDK8_HOME/jre/lib/$arch/libnpjp2.so $MOZILLA_HOME/plugins
# seadas config
#source ~/Projects/BC/Calvados/cdt_ws/config/seadas.env