[yum-commits] Branch 'yum-3_2_X' - etc/yum.bash

Ville Skyttä scop at osuosl.org
Tue Oct 5 16:26:12 UTC 2010


 etc/yum.bash |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

New commits:
commit f70e05e536871902b77c5f39c3f7e834542755cb
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Oct 5 19:25:37 2010 +0300

    Reorder completed commands alphabetically, add some comments.

diff --git a/etc/yum.bash b/etc/yum.bash
index e1648dc..01ee3be 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -79,16 +79,18 @@ _yum()
     local cur
     type _get_cword &>/dev/null && cur=`_get_cword` || cur=$2
     local prev=$3
-    local cmds=( check check-update clean deplist downgrade groupinfo
-        groupinstall grouplist groupremove help history info install list
-        localinstall localupdate makecache provides reinstall remove repolist
-        resolvedep search shell update upgrade version distro-sync )
+    # Commands offered as completions
+    local cmds=( check check-update clean deplist distro-sync downgrade
+        groupinfo groupinstall grouplist groupremove help history info install
+        list localinstall localupdate makecache provides reinstall remove
+        repolist resolvedep search shell update upgrade version )
 
     local i c cmd subcmd
     for (( i=1; i < ${#COMP_WORDS[@]}-1; i++ )) ; do
         [[ -n $cmd ]] && subcmd=${COMP_WORDS[i]} && break
-        for c in ${cmds[@]} check-rpmdb erase groupupdate grouperase \
-            whatprovides distribution-synchronization ; do
+        # Recognize additional commands and aliases
+        for c in ${cmds[@]} check-rpmdb distribution-synchronization erase \
+            groupupdate grouperase whatprovides ; do
             [ ${COMP_WORDS[i]} = $c ] && cmd=$c && break
         done
     done


More information about the Yum-commits mailing list