/usr/share/bash-completion/completions/pbuilder-dist is in ubuntu-dev-tools 0.155.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # pbuilder-dist completion
#
# Copyright 2008 Stephan Hermann <sh@sourcecode.de>, created for
# the Ubuntu MOTU Team.
#
# Released under the GNU General Public License, version 2
#
# Based upon cobwuilder's autocompletion, Copyright 2007 Cyril
# Brulebois <cyril.brulebois@enst-bretagne.fr>
have pbuilder-dist &&
_pbuilder-dist()
{
local cur prev options
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
options='create update build clean login execute'
case $prev in
build)
_filedir "dsc"
;;
*)
COMPREPLY=( $( compgen -W "$options" | grep "^$cur" ) )
;;
esac
return 0
}
[ "$have" ] && _pbuilder-aliases()
{
local distro builder arch
for distro in $(ubuntu-distro-info --all; debian-distro-info --all) stable testing unstable; do
for builder in pbuilder cowbuilder; do
echo "$builder-$distro"
for arch in i386 amd64 armel armhf; do
echo "$builder-$distro-$arch"
done
done
done
return 0
}
[ "$have" ] && complete -F _pbuilder-dist -o filenames pbuilder-dist cowbuilder-dist $(_pbuilder-aliases)
|