Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
5b569149
Commit
5b569149
authored
Feb 17, 2019
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvn: fix formatting
parent
9afaa0c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
218 additions
and
222 deletions
+218
-222
mvn.plugin.zsh
plugins/mvn/mvn.plugin.zsh
+218
-222
No files found.
plugins/mvn/mvn.plugin.zsh
View file @
5b569149
...
@@ -22,11 +22,11 @@ RESET_FORMATTING=$(tput sgr0)
...
@@ -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() {
...
@@ -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 {
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment