The following commit has been merged in the master branch:
commit 917a7e117a455c81e1e8f755dae1d3e7654570c8
Author: James Vega <[email protected]>
Date: Sat Apr 3 20:08:21 2010 -0400
Add bash completion of package names for various scripts.
Closes #507776
diff --git a/debian/changelog b/debian/changelog
index 35d80e3..5aff1c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,8 @@ devscripts (2.10.62) UNRELEASED; urgency=low
* dd-list: Clarify that --dctrl simply changes the expected format of the
list of packages. Thanks to Adeodato Simó for the suggestion. (Partially
addresses #509983)
+ * Add bash completion of package names for various Devscripts commands.
+ Thanks to Simon Paillard for the patch. (Closes: #507776)
[ Patrick Schoenfeld ]
* nmudiff: Fix "[nmudiff] please include --tagpending option" by applying the
diff --git a/scripts/pkgnames.bash_completion b/scripts/pkgnames.bash_completion
new file mode 100644
index 0000000..42c448c
--- /dev/null
+++ b/scripts/pkgnames.bash_completion
@@ -0,0 +1,12 @@
+_pkg_names()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+
+ COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
+
+ return 0
+}
+complete -F _pkg_names wnpp-alert wnpp-check mk-build-deps rmadison mass-bug
debsnap dd-list build-rdeps who-uploads transition-check getbuildlog dcontrol
grep-excuses rc-alert debcheckout mergechanges bts whodepends dget
pts-subscribe debc pts-unsubscribe
+
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].