summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 8560037..1116104 100644
--- a/bashrc
+++ b/bashrc
@@ -73,7 +73,9 @@ hgd() {
# Java
PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME="/usr/share/tomcat-5.5/"
-export M2_HOME="/usr/share/maven-bin-3.0"
+if [ -d /usr/share/maven-bin-* ] ; then
+ export M2_HOME=$(ls -d /usr/share/maven-bin-*)
+fi
export NPM_PACKAGES="${HOME}/.npm-packages"
export NODE_PATH="$NPM_PACKAGES/lib64/node_modules:$NODE_PATH"
export MANPATH="$(manpath):$NPM_PACKAGES/share/man"