[yum-commits] etc/yum.bash

Ville Skyttä scop at osuosl.org
Tue Feb 19 15:49:55 UTC 2013


 etc/yum.bash |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit f643341880888974049970eb915303c5dc34c4ec
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Feb 19 17:49:13 2013 +0200

    Add "search all" completion.

diff --git a/etc/yum.bash b/etc/yum.bash
index ac06316..d741ff9 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -180,7 +180,7 @@ _yum()
             return 0
             ;;
 
-        check-update|makecache|resolvedep|search)
+        check-update|makecache|resolvedep)
             return 0
             ;;
 
@@ -326,6 +326,11 @@ _yum()
             return 0
             ;;
 
+        search)
+            [[ $prev == $cmd ]] && COMPREPLY=( $( compgen -W 'all' -- "$cur" ) )
+            return 0
+            ;;
+
         shell)
             [[ $prev == $cmd ]] && \
                 COMPREPLY=( $( compgen -f -o plusdirs -- "$cur" ) )


More information about the Yum-commits mailing list