Mercurial > hg > zsh-env
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b245298349a |
---|---|
1 # | |
2 # zshrc for Maven | |
3 # | |
4 | |
5 switchMaven() { | |
6 local maven_version="$1" | |
7 local new_path=`removeFromPath "maven"` | |
8 export M2_HOME=/usr/share/maven-bin-${maven_version} | |
9 export PATH="${M2_HOME}/bin":"${new_path}" | |
10 mvn --version | |
11 } | |
12 | |
13 mvn20() { | |
14 switchMaven "2.0" | |
15 } | |
16 | |
17 mvn22() { | |
18 switchMaven "2.2" | |
19 } | |
20 | |
21 mvn30() { | |
22 switchMaven "3.0" | |
23 } |