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

PATCH: _rsync (was Re: completion for fping (not rsync)? on zsh-users)



> 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