Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
3a57076d
Commit
3a57076d
authored
Jun 14, 2015
by
Robby Russell
Browse files
Merge pull request #3813 from ziegs/fix_gradle_tasks
Fixes gradle autocomplete so it includes subproject tasks
parents
628c1fe1
551d68ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/gradle/gradle.plugin.zsh
View file @
3a57076d
...
...
@@ -72,7 +72,7 @@ _gradle_tasks () {
if
[
in_gradle
]
;
then
_gradle_arguments
if
_gradle_does_task_list_need_generating
;
then
gradle tasks
--all
|
grep
"^[ ]*[a-zA-Z0-9]*
\
-
\
"
|
sed
"s/ - .*
$/
/"
|
sed
"s/[
\
]*//"
>
.gradletasknamecache
gradle tasks
--all
|
grep
"^[ ]*[a-zA-Z0-9
:
]*
\
-
\
"
|
sed
"s/ - .*
$/
/"
|
sed
"s/[
\
]*//"
>
.gradletasknamecache
fi
compadd
-X
"==== Gradle Tasks ===="
`
cat
.gradletasknamecache
`
fi
...
...
@@ -82,7 +82,7 @@ _gradlew_tasks () {
if
[
in_gradle
]
;
then
_gradle_arguments
if
_gradle_does_task_list_need_generating
;
then
gradlew tasks
--all
|
grep
"^[ ]*[a-zA-Z0-9]*
\
-
\
"
|
sed
"s/ - .*
$/
/"
|
sed
"s/[
\
]*//"
>
.gradletasknamecache
gradlew tasks
--all
|
grep
"^[ ]*[a-zA-Z0-9
:
]*
\
-
\
"
|
sed
"s/ - .*
$/
/"
|
sed
"s/[
\
]*//"
>
.gradletasknamecache
fi
compadd
-X
"==== Gradlew Tasks ===="
`
cat
.gradletasknamecache
`
fi
...
...
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