1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-29 22:51:03 +02:00
zsh/Completion/Cvs/_cvs_modules
1999-08-26 11:07:42 +00:00

12 lines
244 B
Text

#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