add vim autocomplete stuff
[cmccabe-etc] / .bashrc
diff --git a/.bashrc b/.bashrc
index ca8b97a..cdfad13 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -43,6 +43,14 @@ case $- in
        ;;
 esac
 
+if [ -f "${JAVA_HOME}" ]; then
+        :
+else
+        export PATH="${PATH}:${JAVA_HOME}/bin"
+
+        # Maven always needs more memory than the default.
+        export MAVEN_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
+fi
 # Perturb malloc so that we spot bugs quicker!
 export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))