about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2000-11-12 05:32:26 +0000
committerClint Adams <clint@users.sourceforge.net>2000-11-12 05:32:26 +0000
commite9df08a57c6abe28b3d59eb6e337509415e4610f (patch)
tree22652e914f5150b0ff0dc5ff5691d53a6e96d337
parentb8246a0e934e3f6abc5ade2a0e90e0dc712648eb (diff)
downloadzsh-e9df08a57c6abe28b3d59eb6e337509415e4610f.tar.gz
zsh-e9df08a57c6abe28b3d59eb6e337509415e4610f.tar.xz
zsh-e9df08a57c6abe28b3d59eb6e337509415e4610f.zip
unposted: complete files for reportbug --include= and completion for querybts
-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