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

local root=$CVSROOT
[[ -f CVS/Root ]] && root=$(<CVS/Root)

if [[ $root = :* || ! -d $root ]]; then
  _message "module name"
else
  compadd - \
    $root/^CVSROOT(:t) \
    ${${(M)${(f)"$(<$root/CVSROOT/modules)"}:#[^#]*}%%[ 	]*}
fi