* PATCH: _yafc
@ 2006-10-24 22:02 arno.
2006-10-25 15:00 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: arno. @ 2006-10-24 22:02 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1.1: Type: text/plain, Size: 133 bytes --]
Hi,
I made a completion file for yafc, a ftp client.
I send it to the list in case you want to include it in zsh
distribution.
arno
[-- Attachment #1.2: yafc.patch --]
[-- Type: text/plain, Size: 2181 bytes --]
diff -Nur zsh/Completion/Unix/Command/_yafc zsh~/Completion/Unix/Command/_yafc
--- zsh/Completion/Unix/Command/_yafc 1970-01-01 01:00:00.000000000 +0100
+++ zsh~/Completion/Unix/Command/_yafc 2006-10-25 00:02:26.000000000 +0200
@@ -0,0 +1,44 @@
+# compdef yafc
+
+_yafc() {
+ local arguments
+ arguments=(
+ '(--anon -a)'{--anon,-a}'[Try an anonymous login]'
+ '(--debug -d)'{--debug,-d}'[Print all messages to/from server]'
+ '(--dump-rc -D)'{--dump-rc,-D}'[Print the default configuration file]'
+ '(--mechanism,-m)'{--mechanism=-,-m}'[specify a security mechanism]:security mechanism:(krb4, krb5, none)'
+ '(--norc,-n)'{--norc,-n}'[Do not read the users configuration file]'
+ '(--noproxy,-p)'{--noproxy,-p}'[Do not connect via the proxy]'
+ '(--quiet,-q)'{--quiet,-q}'[Do not print the welcome message]'
+ '(--rcfile,-r)'{--rcfile=-,-r}'[Specify a configuration file]:configuration file:_files'
+ '(--trace,-t)'{--trace=-,-t-}'[Specify a trace file]:trace file:_files'
+ '(--noauto,-u)'{--noauto,-u}'[Do not login automagically]'
+ '(--noalias,-U)'{--noalias,-U}'[As --noauto, but bookmark aliases is disabled]'
+ '(--verbose,-v)'{--verbose,-v}'[print all responses received]'
+ '(--wait,-w)'{--wait,-w=}'[Specify a waiting time between connection attempts]:wait time: '
+ '(--workdir,-W)'{--workdir=,-W+}'[Use a different working directory]:working directory:_directories'
+ '(--version,-V)'{--version,-V}'[Print version information]'
+ '(--help,-h)'{--help,-h}'[Print a short help description]'
+ '*:address:_yafc_address'
+ )
+
+ _arguments -S -s $arguments
+}
+
+ (( $+functions[_yafc_bookmarks] )) ||
+_yafc_bookmarks() {
+ local bkmfile=~/.yafc/bookmarks
+
+ if [[ -f $bkmfile ]]; then
+ local -a bkms
+ bkms=(${${${(M)"${(f)$(<$bkmfile)}":#machine*alias ##\'*\' #}##machine*alias ##\'}%%\' #}) #" vim syntax goes crazy
+ _wanted bookmarks expl 'bookmarks' compadd "$@" -a - bkms
+ fi
+}
+
+ (( $+functions[_yafc_address] )) ||
+_yafc_address() {
+ _alternative 'bookmarks:bookmark:_yafc_bookmarks' '_hosts'
+}
+
+_yafc "$@"
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: _yafc
2006-10-24 22:02 PATCH: _yafc arno.
@ 2006-10-25 15:00 ` Peter Stephenson
2006-10-25 18:55 ` getmail [was Re: PATCH: _yafc] Roman Neuhauser
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2006-10-25 15:00 UTC (permalink / raw)
To: zsh
"arno." <arno.@no-log.org> wrote:
> I made a completion file for getmail, a pop/imap client.
> I made a completion file for yafc, a ftp client.
Thanks, I've committed these two. I've stopped wondering how widespread
the programmes are, since I don't expect to have heard of them any more.
I'm fed up with keeping the .distfiles up to date. We need a system
which says 'all files found recursively from here that match this pattern
and are in CVS are part of the distribution'. We can check CVS/Entries for
that. (I don't want it to add anything automatically that's not in
CVS, there's too much chance of screwing up.)
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
^ permalink raw reply [flat|nested] 3+ messages in thread
* getmail [was Re: PATCH: _yafc]
2006-10-25 15:00 ` Peter Stephenson
@ 2006-10-25 18:55 ` Roman Neuhauser
0 siblings, 0 replies; 3+ messages in thread
From: Roman Neuhauser @ 2006-10-25 18:55 UTC (permalink / raw)
To: Peter Stephenson; +Cc: zsh
# pws@csr.com / 2006-10-25 16:00:20 +0100:
> "arno." <arno.@no-log.org> wrote:
> > I made a completion file for getmail, a pop/imap client.
> > I made a completion file for yafc, a ftp client.
>
> Thanks, I've committed these two. I've stopped wondering how widespread
> the programmes are, since I don't expect to have heard of them any more.
I've been using getmail (http://pyropus.ca/software/getmail/) since
five years ago IIRC, and know a few other people who use it or did
at some point in time. IMO it's better than fetchmail.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-25 16:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24 22:02 PATCH: _yafc arno.
2006-10-25 15:00 ` Peter Stephenson
2006-10-25 18:55 ` getmail [was Re: PATCH: _yafc] Roman Neuhauser
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).