summary refs log tree commit diff
path: root/Completion/Cvs/_cvs_root
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Cvs/_cvs_root')
-rw-r--r--Completion/Cvs/_cvs_root11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Cvs/_cvs_root b/Completion/Cvs/_cvs_root
new file mode 100644
index 000000000..83ba5d93d
--- /dev/null
+++ b/Completion/Cvs/_cvs_root
@@ -0,0 +1,11 @@
+#autoload
+
+if (( ! $+_cvs_roots )); then
+  if [[ -f ~/.cvspass ]]; then
+    _cvs_roots=(${${(f)"$(<~/.cvspass)"}%% *})
+  else
+    _cvs_roots=()
+  fi
+fi
+
+compadd "$@" $_cvs_roots || _files "$@" -/