~jjo/bash-completion/quote_readline_by_ref_fixes

« back to all changes in this revision

Viewing changes to completions/reportbug

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-07-23 16:07:59 UTC
  • mfrom: (5.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120723160759-lt9vn33dl3nak9l0
Tags: 1:2.0-1ubuntu1
* debian/maintscript, debian/postinst:
  - clean etc conffiles on upgrade since completion files are in /usr
    with the new version
* Resync with Debian, remaining diff
  * debian/patches/disable-avahi-browse.diff: Disable avahi-browse since
    it scales poorly in the current form: refresh patch
  * patches/101_bash_completion.oga_ogv.patch: Increase support for other
    OGG formats including .oga, .ogx, etc. (LP: #311525)
  * patches/103_colormake.patch: Add support for colormake to the make
    completion rules. (LP: #743208)
* Dropped changes:
  * Add conffile upgrade handling for a run of conffiles that were dropped
    since lucid: lucid upgrades are only supported to precise.
* Those fixes are in the new version
  * debian/patches/apt-get-changelog.patch:
  * Drop whitelists if they fail to produce any results:
  * patches/apt-get-download.patch: Add download as an apt-get
    sub-command (LP: #720541)
  * patches/102_manpager.patch: Override MANPAGER when generating perldoc
    completions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# bash completion for (Debian) reportbug package
 
1
# bash completion for (Debian) reportbug                   -*- shell-script -*-
2
2
 
3
 
have reportbug &&
4
3
_reportbug()
5
4
{
6
 
    local cur prev
7
 
 
8
 
    COMPREPLY=()
9
 
    _get_comp_words_by_ref cur prev
 
5
    local cur prev words cword
 
6
    _init_completion || return
10
7
 
11
8
    case $prev in
12
9
        -f|--filename|-i|--include|--mta|-o|--output)
19
16
            return 0
20
17
            ;;
21
18
        -e|--editor|--mua)
22
 
            COMP_WORDS=(COMP_WORDS[0] "$cur")
23
 
            COMP_CWORD=1
 
19
            words=(words[0] "$cur")
 
20
            cword=1
24
21
            _command
25
22
            return 0
26
23
            ;;
86
83
} &&
87
84
complete -F _reportbug reportbug
88
85
 
89
 
have querybts &&
90
 
_querybts()
91
 
{
92
 
    local cur prev split=false
93
 
 
94
 
    COMPREPLY=()
95
 
    _get_comp_words_by_ref cur prev
96
 
 
97
 
    _split_longopt && split=true
98
 
 
99
 
    case $prev in
100
 
        -B|--bts)
101
 
            COMPREPLY=( $( compgen -W "debian guug kde mandrake help" \
102
 
                -- "$cur" ))
103
 
            return 0
104
 
            ;;
105
 
        -u|--ui|--interface)
106
 
            COMPREPLY=($( compgen -W "newt text gnome" -- "$cur" ))
107
 
            return 0
108
 
            ;;
109
 
    esac
110
 
 
111
 
    $split && return 0
112
 
 
113
 
    COMPREPLY=($( compgen -W '-h --help -v --version -A --archive \
114
 
        -B --bts -l --ldap --no-ldap --proxy --http_proxy \
115
 
        -s --source -w --web -u --ui --interface \
116
 
        wnpp boot-floppies kernel bugs.debian.org \
117
 
        cdimage.debian.org general installation-reports \
118
 
        listarchives lists.debian.org mirrors nm.debian.org \
119
 
        press project qa.debian.org release-notes \
120
 
        security.debian.org tech-ctte upgrade-reports \
121
 
        www.debian.org' -- "$cur" ) \
122
 
        $( apt-cache pkgnames -- "$cur" 2> /dev/null) )
123
 
} &&
124
 
complete -F _querybts querybts
125
 
 
126
 
# Local variables:
127
 
# mode: shell-script
128
 
# sh-basic-offset: 4
129
 
# sh-indent-comment: t
130
 
# indent-tabs-mode: nil
131
 
# End:
132
86
# ex: ts=4 sw=4 et filetype=sh