mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-07-30 03:28:35 -07:00
76 lines
2.4 KiB
Bash
76 lines
2.4 KiB
Bash
# bash completion for (Debian) reportbug -*- shell-script -*-
|
|
|
|
_reportbug()
|
|
{
|
|
local cur prev words cword split
|
|
_init_completion -s || return
|
|
|
|
case $prev in
|
|
-f|--filename|-i|--include|--mta|-o|--output|-A|--attach)
|
|
_filedir
|
|
return
|
|
;;
|
|
-B|--bts)
|
|
COMPREPLY=( $( compgen -W "debian guug kde mandrake help" -- \
|
|
"$cur" ) )
|
|
return
|
|
;;
|
|
-e|--editor|--mua)
|
|
words=( words[0] "$cur" )
|
|
cword=1
|
|
_command
|
|
return
|
|
;;
|
|
--mode)
|
|
COMPREPLY=( $( compgen -W "novice standard expert" -- "$cur" ) )
|
|
return
|
|
;;
|
|
-S|--severity)
|
|
COMPREPLY=( $( compgen -W "grave serious important normal minor
|
|
wishlist" -- "$cur" ) )
|
|
return
|
|
;;
|
|
-u|--ui|--interface)
|
|
COMPREPLY=( $( compgen -W "newt text gnome" -- "$cur" ) )
|
|
return
|
|
;;
|
|
-t|--type)
|
|
COMPREPLY=( $( compgen -W "gnats debbugs" -- "$cur" ) )
|
|
return
|
|
;;
|
|
-T|--tag)
|
|
COMPREPLY=( $( compgen -W "none woody potato sarge sarge-ignore
|
|
etch etch-ignore lenny lenny-ignore sid experimental confirmed
|
|
d-i fixed fixed-in-experimental fixed-upstream help l10n
|
|
moreinfo patch pending security unreproducible upstream wontfix
|
|
ipv6 lfs" -- "$cur" ) )
|
|
return
|
|
;;
|
|
--from-buildd)
|
|
COMPREPLY=( $( compgen -S "_" -W '$( apt-cache dumpavail | \
|
|
command grep "^Source: $cur" | sort -u | cut -f2 -d" " )' ))
|
|
return
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
$split && return
|
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )
|
|
wnpp boot-floppies kernel bugs.debian.org
|
|
cdimage.debian.org general installation-reports
|
|
listarchives lists.debian.org mirrors nm.debian.org
|
|
press project qa.debian.org release-notes
|
|
security.debian.org tech-ctte upgrade-reports
|
|
www.debian.org' -- "$cur" )
|
|
$( apt-cache pkgnames -- "$cur" 2>/dev/null ) )
|
|
if [[ $COMPREPLY == -*= ]]; then
|
|
compopt -o nospace
|
|
else
|
|
_filedir
|
|
fi
|
|
} &&
|
|
complete -F _reportbug reportbug
|
|
|
|
# ex: filetype=sh
|