Mercurial > hg > zsh-env
diff zshrc-maven @ 0:8b245298349a
zsh environment - initial import
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 28 Nov 2011 12:36:49 +0100 |
parents | |
children | fd29e12b3a2e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zshrc-maven Mon Nov 28 12:36:49 2011 +0100 @@ -0,0 +1,23 @@ +# +# zshrc for Maven +# + +switchMaven() { + local maven_version="$1" + local new_path=`removeFromPath "maven"` + export M2_HOME=/usr/share/maven-bin-${maven_version} + export PATH="${M2_HOME}/bin":"${new_path}" + mvn --version +} + +mvn20() { + switchMaven "2.0" +} + +mvn22() { + switchMaven "2.2" +} + +mvn30() { + switchMaven "3.0" +}