Package list debian-goodies / c5da1b5
Add bash package name completion for which-pkg-broke, dhomepage, and debget Closes: #641877 Based on devscript's package name completion which is under GPLv2+, too. Axel Beckert 9 years ago
3 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 _pkg_names()
1 {
2 local cur prev opts
3 COMPREPLY=()
4 cur="${COMP_WORDS[COMP_CWORD]}"
5
6 COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
7
8 return 0
9 }
10
11 complete -F _pkg_names which-pkg-broke dhomepage debget
1414 * [bash_completion]
1515 - Install debmany bash completion file to /etc/bash_completion.d
1616 instead of as example. Rename it for easier use of dh_install.
17 - Add bash package name completion for which-pkg-broke (Closes:
18 #641877), dhomepage, and debget. (Based on devscript's package name
19 completion which is under GPLv2+, too)
1720 * Thanks Jakub Wilk for many bugfix patches!
1821
1922 --
00 debmany/bash_completion/debmany etc/bash_completion.d
1 bash_completion/debian-goodies.pkgnames etc/bash_completion.d