[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-259-g21c5a0e

Ville Skyttä ville.skytta at iki.fi
Tue May 3 07:48:25 UTC 2011


The following commit has been merged in the master branch:
commit 3e4aadd72db386ca1236bebc363978ab8e46f202
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue May 3 09:43:29 2011 +0300

    ant: Improve -lib, -find/-s, and -D argument completions.

diff --git a/completions/ant b/completions/ant
index 286318c..5f5ad10 100644
--- a/completions/ant
+++ b/completions/ant
@@ -24,12 +24,18 @@ _ant()
             COMPREPLY=( $( compgen -W '{1..10}' -- "$cur" ) )
             return 0
             ;;
-        -lib|-logger|-listener|-D|-inputhandler|-main)
+        -lib)
+            _filedir -d
+            return 0
+            ;;
+        -logger|-listener|-inputhandler|-main|-find|-s)
             return 0
             ;;
     esac
 
-    if [[ "$cur" == -* ]]; then
+    if [[ $cur == -D* ]]; then
+        return 0
+    elif [[ "$cur" == -* ]]; then
         COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
     else
         # available targets completion

-- 
bash-completion



More information about the Bash-completion-commits mailing list