about summary refs log tree commit diff
path: root/Completion/Cvs/_cvs_root
blob: 83ba5d93d0acab0c65d9f13afa823db2d186fb5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#autoload

if (( ! $+_cvs_roots )); then
  if [[ -f ~/.cvspass ]]; then
    _cvs_roots=(${${(f)"$(<~/.cvspass)"}%% *})
  else
    _cvs_roots=()
  fi
fi

compadd "$@" $_cvs_roots || _files "$@" -/