about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-02-03 06:12:34 +0000
committerClint Adams <clint@users.sourceforge.net>2002-02-03 06:12:34 +0000
commit1dd643b01672c17fb96085dd5377f565530b9fb5 (patch)
treef46b568a8a77a769e7be0812e36bca536c43bb06
parent29b704202aace2478f2635a660a5922a779f1b4f (diff)
downloadzsh-1dd643b01672c17fb96085dd5377f565530b9fb5.tar.gz
zsh-1dd643b01672c17fb96085dd5377f565530b9fb5.tar.xz
zsh-1dd643b01672c17fb96085dd5377f565530b9fb5.zip
16540: short options and local files
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_rsync21
2 files changed, 25 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d0d44893..86899971c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-03  Clint Adams  <clint@zsh.org>
+
+	* 16540: Completion/Unix/Command/_rsync: include short options and
+	local files.
+
 2002-02-01  Oliver Kiddle  <opk@zsh.org>
 
 	* Akinori Musha: 16534: Completion/BSD/Command/_bsd_pkg:
diff --git a/Completion/Unix/Command/_rsync b/Completion/Unix/Command/_rsync
index cb0261340..bb6eb3acb 100644
--- a/Completion/Unix/Command/_rsync
+++ b/Completion/Unix/Command/_rsync
@@ -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 -/'