Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: update mutt and irssi completions



The additional mutt options are perhaps for the development branch but
that seems to be what every Linux distribution is including. For irssi,
there was only one extra option and not a very exciting one at that but
it is good to have it up-to-date.

Oliver

diff --git a/Completion/Unix/Command/_irssi b/Completion/Unix/Command/_irssi
index ee1e1ef..fd64b5e 100644
--- a/Completion/Unix/Command/_irssi
+++ b/Completion/Unix/Command/_irssi
@@ -30,6 +30,7 @@ _arguments -s \
   '--noconnect[disable autoconnect]' \
   '(-n --nick)'{-n,--nick=}'[set nick name]:nick:_irssi_nick' \
   '(-h --hostname)'{-h,--hostname=}'[specify hostname]:hostname:_hosts' \
+  '(-d --dummy)'{-d,--dummy}'[use the dummy terminal mode]' \
   '(-)'{-v,--version}'[display version information]' \
   '(-)'{-\?,--help}'[display help information]' \
   '(-)--usage[display usage]'
diff --git a/Completion/Unix/Command/_mutt b/Completion/Unix/Command/_mutt
index c9ff98a..3d433a0 100644
--- a/Completion/Unix/Command/_mutt
+++ b/Completion/Unix/Command/_mutt
@@ -1,11 +1,14 @@
 #compdef mutt
 
-_arguments -s \
+_arguments -s -S \
   '::recipient:_email_addresses -n mutt' \
-  '*-a[attach file using MIME]:file attachment:_files' \
+  '(- :)-A[expand given alias]:alias:_email_addresses -n mutt' \
+  '*-a[attach file using MIME]::file attachment:_files' \
   '*-b[specify a BCC recipient]:BCC recipient:_email_addresses -n mutt' \
   '*-c[specify a CC recipient]:CC recipient:_email_addresses -n mutt' \
-  '-e+[specify a post-init configuration command]:post-init configuration:' \
+  '(- :)-D[print the value of all variables]' \
+  '-d+[log debugging output to ~/.muttdebug0]:level:(1 2 3 4 5)' \
+  '-e+[specify a post-init configuration command]:post-init configuration' \
   '-f+[specify mailbox to load]:mailbox: _mailboxes' \
   '-F+[specify an init file]:init file:_files' \
   '-h[display help]' \
@@ -14,6 +17,7 @@ _arguments -s \
   '-m+[specify default mailbox type]:mailbox type:(mbox MMDF MH Maildir)' \
   '-n[bypass system configuration]' \
   '-p[resume postponed message]' \
+  '(- :)-Q+[query a configuration variable]:variable:(${${(f)"$(_call_program variables mutt -D 2>/dev/null)"}%%( is|=)*})' \
   '-R[open in read-only mode]' \
   '-s+[specify a subject]:subject:' \
   '-v[display mutt version]' \



Messages sorted by: Reverse Date, Date, Thread, Author