about summary refs log tree commit diff
path: root/Completion/Cvs/_cvs_watch
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-26 11:07:42 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-26 11:07:42 +0000
commitf77d7a9123b6169803d3379905c015cf0cb8cb49 (patch)
treee91558e3e8615f66228f110ea610024d16da65d2 /Completion/Cvs/_cvs_watch
parent9b20f822d01a0c33e6321deb42d6d59e818d6c5a (diff)
downloadzsh-f77d7a9123b6169803d3379905c015cf0cb8cb49.tar.gz
zsh-f77d7a9123b6169803d3379905c015cf0cb8cb49.tar.xz
zsh-f77d7a9123b6169803d3379905c015cf0cb8cb49.zip
zsh-workers/7495
Diffstat (limited to 'Completion/Cvs/_cvs_watch')
-rw-r--r--Completion/Cvs/_cvs_watch21
1 files changed, 21 insertions, 0 deletions
diff --git a/Completion/Cvs/_cvs_watch b/Completion/Cvs/_cvs_watch
new file mode 100644
index 000000000..4db814ae5
--- /dev/null
+++ b/Completion/Cvs/_cvs_watch
@@ -0,0 +1,21 @@
+#autoload
+
+if (( CURRENT == 2 )); then
+  compadd on off add remove
+else
+  case "$words[2]" in
+    on|off) # "+lR"
+      _arguments -s \
+	-{l,R} \
+	':watch command:' \
+	':*:file:_cvs_files'
+      ;;
+    add|remove) # "+lRa:"
+      _arguments -s \
+	-{l,R} \
+	'*-a+:action:(edit unedit commit all none)' \
+	':watch command:' \
+	':*:file:_cvs_files'
+      ;;
+  esac
+fi