summary refs log tree commit diff
path: root/Completion/Cvs/_cvs_watch
diff options
context:
space:
mode:
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