summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2010-09-05 13:44:04 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2010-09-05 13:44:04 +0300
commitb3ef775489fc4926639a44166c8929eb67fbf2d8 (patch)
tree61093505c204f414327fdd57347fe1404c323671 /contrib
parent60be96510f08e06800d79174c45dd963d5ac66ff (diff)
* add some stuff to the zsh completions
Diffstat (limited to 'contrib')
-rw-r--r--contrib/mu-completion.zsh34
1 files changed, 25 insertions, 9 deletions
diff --git a/contrib/mu-completion.zsh b/contrib/mu-completion.zsh
index f38aab1..84ebd7c 100644
--- a/contrib/mu-completion.zsh
+++ b/contrib/mu-completion.zsh
@@ -26,36 +26,53 @@ _mu_commands() {
'cleanup:remove references to deleted messages from the database'
'extract:list message-parts (attachments) and extract them to files'
'mkdir:create maildirs'
- 'view:display specific messages'
- )
+ 'view:display specific messages')
_describe -t command 'command' mu_commands
}
+_mu_common_options=(
+ '--debug[output information useful for debugging mu]'
+ '--quiet[do not give any non-critical information]'
+ '--version[display mu version and copyright information]'
+ '--log-stderr[log to standard error]'
+)
+
+_mu_db_options=(
+ '--muhome[use some non-default location for the mu database]:directory:_files'
+)
+
+
_mu_view() {
- _files
+ _files
}
_mu_extract() {
- _files
+ _files
}
_mu_find() {
-
+ _arguments -s : \
+ $_mu_common_options
}
_mu_index() {
-
+ _arguments -s : \
+ $_mu_db_options \
+ $_mu_common_options
}
_mu_cleanup() {
-
+ _arguments -s : \
+ $_mu_db_options \
+ $_mu_common_options
}
_mu_mkdir() {
_arguments -s : \
- '--mode=[file mode for the new Maildir]:file mode: '
+ '--mode=[file mode for the new Maildir]:file mode: ' \
+ $_mu_common_options
}
_mu() {
@@ -73,7 +90,6 @@ _mu() {
_mu "$@"
-
# Local variables:
# mode: sh
# End: