[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-235-g26ae770

Igor Murzov igor at gplsoft.org
Mon May 2 10:27:42 UTC 2011


The following commit has been merged in the master branch:
commit fdc21f8ce69cc7e07991e89354b1e9afe1117195
Author: Igor Murzov <igor at gplsoft.org>
Date:   Sun Dec 26 18:40:33 2010 +0300

    Add completion of -V option for sbopkg

diff --git a/completions/slackware b/completions/slackware
index 29e4d61..4d955f1 100644
--- a/completions/slackware
+++ b/completions/slackware
@@ -196,7 +196,12 @@ _sbopkg()
             _filedir -d
             return 0
             ;;
-        -s|-g|-V)
+        -s|-g)
+            return 0
+            ;;
+        -V)
+            COMPREPLY=( $( compgen -W "? \
+                `sbopkg -V ? 2>&1 | tail -n +2 | cut -f1`" -- "$cur" ) )
             return 0
             ;;
         -i|-b)

-- 
bash-completion



More information about the Bash-completion-commits mailing list