adding bash-comp to gradle-bin

This commit is contained in:
Micha Glave
2012-01-04 15:39:28 +01:00
parent ffb182ea9b
commit 8a8f2e4e83
3 changed files with 22 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
_gradle_complete()
{
local cur tasks
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
tasks='clean compile dists javadoc jar test war'
cur=`echo $cur | sed 's/\\\\//g'`
COMPREPLY=($(compgen -W "${tasks}" ${cur} | sed 's/\\\\//g') )
}
complete -F _gradle_complete -o filenames gradle