/etc/bash_completion.d/debfoster is in debfoster 2.7-2.
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 | # -*- sh -*-
# Provided by Eric Hansander <ehdr@users.sourceforge.net> in
# <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=349035>
have debfoster &&
_debfoster()
{
local cur prev options
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
options='-v --verbose -V --version -h --help -q --quiet -f --force \
-m --mark-only -u --upgrade -c --config -k --keeperfile -n \
--no-keeperfile -i --ignore-default-rules -a --show-keepers -s \
--show-orphans -d --show-depends -e --show-dependents -p \
--show-providers -r --show-related -t --use-tasks -o --option'
case $prev in
-@(c|-config|k|-keeperfile))
_filedir
return 0
;;
-@(d|-show-depends|e|-show-dependents|r|-show-related))
COMPREPLY=( $( _comp_dpkg_installed_packages $cur ) )
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
else
# This is just an approximation. Actually, debfoster can
# install new packages, which won't appear in that list.
COMPREPLY=( $( _comp_dpkg_installed_packages $cur ) )
fi
return 0
}
test "$have" && complete -F _debfoster $default debfoster
|