mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
mvn: fix formatting
This commit is contained in:
parent
9afaa0c406
commit
5b569149f3
1 changed files with 218 additions and 222 deletions
|
@ -22,11 +22,11 @@ RESET_FORMATTING=$(tput sgr0)
|
||||||
|
|
||||||
# if found an executable ./mvnw file execute it otherwise execute orignal mvn
|
# if found an executable ./mvnw file execute it otherwise execute orignal mvn
|
||||||
mvn-or-mvnw() {
|
mvn-or-mvnw() {
|
||||||
if [ -x ./mvnw ] ; then
|
if [ -x ./mvnw ]; then
|
||||||
echo "executing mvnw instead of mvn"
|
echo "executing mvnw instead of mvn"
|
||||||
./mvnw "$@";
|
./mvnw "$@"
|
||||||
else
|
else
|
||||||
mvn "$@";
|
mvn "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,9 +48,6 @@ mvn-color() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Override the mvn command with the colorized one.
|
|
||||||
#alias mvn="mvn-color"
|
|
||||||
|
|
||||||
# either use orignal mvn oder the mvn wrapper
|
# either use orignal mvn oder the mvn wrapper
|
||||||
alias mvn="mvn-or-mvnw"
|
alias mvn="mvn-or-mvnw"
|
||||||
|
|
||||||
|
@ -296,10 +293,9 @@ function listMavenCompletions {
|
||||||
cobertura:cobertura
|
cobertura:cobertura
|
||||||
-Dtest=$(if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi)
|
-Dtest=$(if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi)
|
||||||
-Dit.test=$(if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dit.test=\1?' ; fi)
|
-Dit.test=$(if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dit.test=\1?' ; fi)
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
compctl -K listMavenCompletions mvn mvnw
|
compctl -K listMavenCompletions mvn mvnw
|
||||||
compctl -K listMavenCompletions mvn-color
|
compctl -K listMavenCompletions mvn-color
|
||||||
compctl -K listMavenCompletions mvn-or-mvnw
|
compctl -K listMavenCompletions mvn-or-mvnw
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue