diff options
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |