1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-24 00:32:33 +08:00
ohmyzsh/plugins/mvn/mvn.plugin.zsh

19 lines
809 B
Bash
Raw Normal View History

2012-11-07 01:39:59 +08:00
# aliases
alias mvncie='mvn clean install eclipse:eclipse'
alias mvnci='mvn clean install'
alias mvne='mvn eclipse:eclipse'
alias mvnce='mvn clean eclipse:clean eclipse:eclipse'
alias mvnd='mvn deploy'
alias mvnp='mvn package'
alias mvnc='mvn clean'
alias mvncom='mvn compile'
alias mvnt='mvn test'
alias mvnag='mvn archetype:generate'
2010-12-01 16:56:54 +08:00
function listMavenCompletions {
reply=(
2011-02-16 17:40:51 +08:00
cli:execute cli:execute-phase archetype:generate generate-sources compile clean install test test-compile deploy package cobertura:cobertura jetty:run gwt:run gwt:debug -DskipTests -Dmaven.test.skip=true -DarchetypeCatalog=http://tapestry.formos.com/maven-snapshot-repository -Dtest= `if [ -d ./src ] ; then find ./src -type f | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi`);
2010-12-01 16:56:54 +08:00
}
2012-11-07 01:39:59 +08:00
compctl -K listMavenCompletions mvn