[Bash-completion-commits] [SCM] bash-completion branch, master, updated. e5c2eef34b7418b836bf29fef3d9ac868acb2107
Ville Skyttä
ville.skytta at iki.fi
Mon Mar 30 19:26:49 UTC 2009
The following commit has been merged in the master branch:
commit ab46b349a48ac5bc8236c23e2af39babdefb6911
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Mar 30 22:04:42 2009 +0300
Update list of yum commands and options.
diff --git a/contrib/yum b/contrib/yum
index f718dcd..5543316 100644
--- a/contrib/yum
+++ b/contrib/yum
@@ -55,16 +55,15 @@ _yum()
esac
fi
- case $cur in
- --*)
- COMPREPLY=( $( compgen -W '--installroot --version --help --enablerepo --disablerepo --exclude --obsoletes --noplugins' -- $cur ) )
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-h --help -t --tolerant -C -c -R \
+ -d --showduplicates -e -q --quiet -v --verbose -y \
+ --version --installroot --enablerepo --disablerepo -x \
+ --exclude --disableexcludes --obsoletes --noplugins \
+ --nogpgcheck --disableplugin --enableplugin \
+ --skip-broken --color' -- $cur ) )
return 0
- ;;
- -*)
- COMPREPLY=( $( compgen -W '-c -e -d -y -t -R -C -h' -- $cur ) )
- return 0
- ;;
- esac
+ fi
case $prev in
list)
@@ -84,11 +83,12 @@ _yum()
_filedir -d
;;
*)
- COMPREPLY=( $( compgen -W 'install update check-update upgrade remove list \
- search info provides clean groupinstall groupupdate \
- grouplist deplist erase groupinfo groupremove \
- localinstall localupdate makecache resolvedep \
- shell whatprovides' -- $cur ) )
+ COMPREPLY=( $( compgen -W 'install update check-update \
+ upgrade remove erase list info provides whatprovides \
+ clean makecache groupinstall groupupdate grouplist \
+ groupremove groupinfo search shell resolvedep \
+ localinstall localupdate deplist repolist help' \
+ -- $cur ) )
;;
esac
}
diff --git a/debian/changelog b/debian/changelog
index afbb037..0afbdcc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ bash-completion (1:1.x) UNRELEASED; urgency=low
[ Ville Skyttä ]
* 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.
-- David Paleino <d.paleino at gmail.com> Wed, 25 Mar 2009 23:18:24 +0100
--
bash-completion
More information about the Bash-completion-commits
mailing list