summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/_bug30
2 files changed, 27 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 382d7b1bc..339ead1a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-12  Clint Adams  <schizo@debian.org>
+
+	* unposted: Completion/Debian/_bug: complete files for --include=,
+	completion for querybts.
+
 2000-11-11  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
 	* 13109, 13111: Doc/Zsh/mod_zle.yo, Src/Zle/zle_main.c,
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