diff options
Diffstat (limited to 'Completion/Debian')
-rw-r--r-- | Completion/Debian/_bug | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/Completion/Debian/_bug b/Completion/Debian/_bug index ee6046a12..d25b84c52 100644 --- a/Completion/Debian/_bug +++ b/Completion/Debian/_bug @@ -1,5 +1,7 @@ #compdef bug reportbug +local _bug_commonargs _rb_commonargs + _bug_commonargs=('-d[debug: send mail to postmaster@localhost]' \ '-m[maintainer-only]' \ '-p[print to stdout instead of mail]' \ @@ -8,6 +10,15 @@ _bug_commonargs=('-d[debug: send mail to postmaster@localhost]' \ '-v[version]' \ '*:package:_deb_packages installed') + +_rb_commonargs=('(--bts)-B[use alternate BTS]:system:(debian gnome kde tdyc kde-debian)' \ + '(-B)--bts=:system:(debian gnome kde tdyc kde-debian)' \ + '(--ldap)-l[enable LDAP support]' \ + '(-l)--ldap' \ + '--no-ldap[disable LDAP support]' \ + '(--http_proxy)--proxy=:proxyhost:_hosts' \ + '(--proxy)--http_proxy=:proxyhost:_hosts') + case "${words[1]:t}" in bug) _arguments '-c[exclude configs from report]' \ @@ -39,13 +50,9 @@ _arguments '(--no-config-files)-c[exclude configs from report]' \ '(-a)--af[use af instead of editor]' \ '(--no-bts-query)-b[do not check bts]' \ '(-b)--no-bts-query' \ - '(--bts)-B[use alternate BTS]:system:(debian gnome kde tdyc)' \ - '(-B)--bts=:system:(debian gnome kde tdyc)' \ '-g[sign report with GnuPG]' \ - '(--include)-i[include text]:' \ - '(-i)--include=:' \ - '(--no-ldap)-l[disable LDAP support]' \ - '(-l)--no-ldap' \ + '(--include)-i[include text]:_files' \ + '(-i)--include=:_files' \ '(--mutt)-M[use mutt instead of editor]' \ '(-M)--mutt' \ '--mua=[use specified mua instead of editor]' \ @@ -56,7 +63,14 @@ _arguments '(--no-config-files)-c[exclude configs from report]' \ '(-o)--output=' \ '(--pgp)-P[sign report with PGP]' \ '(-P)--pgp' \ - '--ldap[enable LDAP support]' \ - "$_bug_commonargs[@]" + "$_bug_commonargs[@]" \ + "$_rb_commonargs[@]" ;; + +querybts) +_arguments '(--web)-w[launch external web browser]' \ + '(-w)--web' \ + "$_rb_commonargs[@]" \ + '*:package:_deb_packages avail' + esac |