[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 356bc43969f81e871e269e7ab6f148960ac1a795

Ville Skyttä ville.skytta at iki.fi
Tue Mar 31 17:38:22 UTC 2009


The following commit has been merged in the master branch:
commit 356bc43969f81e871e269e7ab6f148960ac1a795
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Mar 31 20:38:15 2009 +0300

    Add yum -d and -e completions.

diff --git a/contrib/yum b/contrib/yum
index 78dede7..e5af2d3 100644
--- a/contrib/yum
+++ b/contrib/yum
@@ -91,6 +91,10 @@ _yum()
 			# TODO: should not match *src.rpm
 			_filedir rpm
 			;;
+		-d|-e)
+			COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9 10' \
+				-- $cur ) )
+			;;
 		-c)
 			_filedir
 			;;
diff --git a/debian/changelog b/debian/changelog
index 27feac4..7f4b0af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,7 +7,8 @@ bash-completion (1:1.x) UNRELEASED; urgency=low
   * Split yum and yum-arch completion into contrib/yum.
   * Install yum-arch completion only if yum-arch is installed.
   * Update list of yum commands and options.
-  * Add yum repolist, --enable/disablerepo, and --disableexcludes completions.
+  * Add yum repolist, --enable/disablerepo, --disableexcludes, -d, and -e
+    completions.
   * Fix local array initialization under bash 3.0, prevents "()" occurring in
     file and dir name completions.
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list