diff --git a/bash_completion b/bash_completion index c205605c..f6419511 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05a # -# $Id: bash_completion,v 1.192 2002/03/11 02:10:17 ianmacd Exp $ +# $Id: bash_completion,v 1.193 2002/03/11 02:15:09 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -2417,6 +2417,108 @@ _urpmi.removemedia() } [ "$have" ] && complete -F _urpmi.removemedia urpmi.removemedia +# Debian Linux reportbug(1) completion +# +have reportbug && +_reportbug() +{ + local cur prev + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case "$prev" in + -f|--filename|-i|--include|--mta|-o|--output) + _filedir + return 0 + ;; + -B|--bts) + COMPREPLY=($( compgen -W "debian guug kde mandrake help" -- $cur )) + return 0 + ;; + -e|--editor|--mua) + COMP_WORDS=(COMP_WORDS[0] $cur) + COMP_CWORD=1 + _command + return 0 + ;; + --mode) + COMPREPLY=($( compgen -W "novice standard expert" -- $cur )) + return 0 + ;; + -S|--severity) + COMPREPLY=($( compgen -W "grave serious important normal minor wishlist" -- $cur )) + return 0; + ;; + -u|--ui--interface) + COMPREPLY=($( compgen -W "newt text gnome" -- $cur )) + return 0 + ;; + -t|--type) + COMPREPLY=($( compgen -W "gnats debbugs" -- $cur )) + return 0; + ;; + -T|--tags) + COMPREPLY=($( compgen -W "none patch security upstream sid woody potato sarge fixed" -- $cur )) + return 0; + ;; + *) + ;; + esac + + COMPREPLY=($( compgen -W '-h --help -v --version -a --af -b \ + --no-query-bts --query-bts -B --bts -c --configure \ + --no-config-files --check-available -d --debug \ + --no-check-available -e --editor --email -f \ + --filename -g --gnupg -H --header -i --include -j \ + --justification -l --ldap --no-ldap -L --list-cc -m \ + --maintonly --mode --mua --mta --mutt -n --mh --nmh \ + -o --output -p --print -P --pgp --proxy --http_proxy\ + -q --quiet -Q --query-only --realname --report-quiet \ + --reply-to --replyto -s --subject -S --severity \ + --smtphost -t --type -T --tags --template -V -x \ + --no-cc --package-version -z --no-compress \ + --ui --interface -u \ + wnpp boot-floppies kernel-image' -- $cur ) \ + $(apt-cache pkgnames -- $cur)) + _filedir + return 0 +} +[ "$have" ] && complete -F _reportbug -o filenames reportbug + +# Debian Linux querybts(1) completion +# +have querybts && +_querybts() +{ + local cur prev + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case "$prev" in + -B|--bts) + COMPREPLY=($( compgen -W "debian guug kde mandrake help" -- $cur )) + return 0 + ;; + -u|--ui--interface) + COMPREPLY=($( compgen -W "newt text gnome" -- $cur )) + return 0 + ;; + *) + ;; + esac + + COMPREPLY=($( compgen -W '-h --help -v --version -A --archive \ + -B --bts -l --ldap --no-ldap --proxy= --http_proxy= \ + -s --source -w --web -u --ui --interface + wnpp boot-floppies' -- $cur ) \ + $(apt-cache pkgnames -- $cur)) +} +[ "$have" ] && complete -F _querybts -o filenames querybts + _filedir_xspec() { local IFS cur xspec