Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _rsync (was Re: completion for fping (not rsync)? on zsh-users)
- X-seq: zsh-workers 16540
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _rsync (was Re: completion for fping (not rsync)? on zsh-users)
- Date: Sun, 3 Feb 2002 01:10:27 -0500
- In-reply-to: <20020123153807.GA21276@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020122191915.GA25925@xxxxxxxxxxxxxxxx> <15438.30441.817950.156120@xxxxxxxxxxxxxxxxxx> <20020123150253.GA13879@xxxxxxxxxxxxxxxx> <15438.54627.391890.885390@xxxxxxxxxxxxxxxxxx> <20020123153807.GA21276@xxxxxxxxxxxxxxxx>
> yes this would be for rsync..... I'll work on that this afternoon. I was
> going to peek at _scp, etc.. I did notice that _rsync seems to be
> only half done.
Well, not even half. Here's some more, not even touching remote
hosts and files.
Index: Completion/Unix/Command/_rsync
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_rsync,v
retrieving revision 1.1
diff -u -r1.1 _rsync
--- Completion/Unix/Command/_rsync 2001/11/29 17:08:02 1.1
+++ Completion/Unix/Command/_rsync 2002/02/03 06:09:27
@@ -1,5 +1,24 @@
#compdef rsync
-_arguments -- '*=COMMAND*:command:_command' \
+_arguments -C -s \
+ '*:local files:_files' \
+ '(--verbose)-v[verbose]' \
+ '(--quiet)-q[quiet]' \
+ '(--checksum)-c[checksum]' \
+ '(--archive)-a[archive]' \
+ '(--recursive)-r[recursive]' \
+ '(--backup)-b[backup]' \
+ '(--update)-u[update]' \
+ '(--links)-l[links]' \
+ '(--perms)-p[perms]' \
+ '(--owner)-o[owner]' \
+ '(--group)-g[group]' \
+ '(--times)-t[times]' \
+ '(--dry-run)-n[dry-run]' \
+ '(--one-file-system)-x[one-file-system]' \
+ '(--rsh)-e[rsh command]:remote command:(rsh ssh)' \
+ '(--compress)-z[compress]' \
+ '(--help)-h[help]' \
+ -- '*=COMMAND*:command:_command' \
'*=FILE*:file:_files' \
'*=DIR*:directory:_files -/'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author