From: Colin Patrick Mccabe Date: Fri, 31 Aug 2012 19:55:47 +0000 (-0700) Subject: If JAVA_HOME is defined, add JAVA_HOME/bin to path X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a62bed0dfcacb855a82216b8ea636b52c26e5e38;p=cmccabe-etc If JAVA_HOME is defined, add JAVA_HOME/bin to path Signed-off-by: Colin McCabe --- diff --git a/.bashrc b/.bashrc index ca8b97a..07c0f53 100644 --- a/.bashrc +++ b/.bashrc @@ -43,6 +43,11 @@ case $- in ;; esac +if [ -f "${JAVA_HOME}" ]; then + : +else + export PATH="${PATH}:${JAVA_HOME}/bin" +fi # Perturb malloc so that we spot bugs quicker! export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))