* PATCH: _getmail
@ 2006-10-24 22:00 arno.
0 siblings, 0 replies; only message in thread
From: arno. @ 2006-10-24 22:00 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1.1: Type: text/plain, Size: 149 bytes --]
Hi,
I made a completion file for getmail, a pop/imap client.
I send it to the list in case you find to include it in zsh
distribution.
arno.
[-- Attachment #1.2: getmail.patch --]
[-- Type: text/plain, Size: 1364 bytes --]
diff -Nur zsh/Completion/Unix/Command/_getmail zsh~/Completion/Unix/Command/_getmail
--- zsh/Completion/Unix/Command/_getmail 1970-01-01 01:00:00.000000000 +0100
+++ zsh~/Completion/Unix/Command/_getmail 2006-10-24 23:55:26.000000000 +0200
@@ -0,0 +1,27 @@
+#compdef getmail
+
+_getmail_confiles() {
+ local -a a f
+ local expl
+ f=( ~/.getmail/*~$HOME/.getmail/oldmail*(.))
+ a=(${f#~/.getmail/})
+ _wanted getmail-conffile expl 'config file' compadd "$@" -a - a
+}
+
+local -a arguments
+ arguments=(
+ '--version[show version]'
+ '(--help,-h)'{--help,-h}'[display help]'
+ '(--getmaildir,-g)'{--getmaildir=,-g+}'[specify config/data directory]:config directory:_directories'
+ \*{--rcfile=,-r+}'[specify configuration file]:config file:_getmail_confiles'
+ '--dump[dump configuration]'
+ '--trace[print extended information]'
+ '*:files:_files'
+ \*{--verbose,-v}'[verbose mode]'
+ '(--quiet,-q)'{--quiet,-q}'[silent mode]'
+ '(--delete,-d,--dont-delete,-l)'{--delete,-d}'[delete messages from server]'
+ '(--delete,-d,--dont-delete,-l)'{--dont-delete,-l}"[don't delete messages from server]"
+ '(--new,-n,--all,-a)'{--all,-a}'[retrieve all messages]'
+ '(--new,-n,--all,-a)'{--new,-n}'[retrieve only new messages]'
+ )
+_arguments -s -S $arguments
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-24 22:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24 22:00 PATCH: _getmail arno.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).