summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:01:04 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:01:04 +0000
commit5a260e707148302072bc2b46f9efd45b62105fe4 (patch)
tree5583d6982035ca3ae3ad051021fb6aa267028fc1
parent7f879a4103cd4a85c4cae091b484cefba7db5fc3 (diff)
downloadzsh-5a260e707148302072bc2b46f9efd45b62105fe4.tar.gz
zsh-5a260e707148302072bc2b46f9efd45b62105fe4.tar.xz
zsh-5a260e707148302072bc2b46f9efd45b62105fe4.zip
moved from Completion/User/_rcs
-rw-r--r--Completion/Unix/Command/_rcs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_rcs b/Completion/Unix/Command/_rcs
new file mode 100644
index 000000000..7ff3b8326
--- /dev/null
+++ b/Completion/Unix/Command/_rcs
@@ -0,0 +1,14 @@
+#compdef co ci rcs
+
+local ret=1
+
+if [[ -d RCS && $service != ci ]]; then
+  local rep expl
+
+  rep=(RCS/*,v(D:t:s/\,v//))
+  (( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
+fi
+
+[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
+
+return ret