mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-26 05:51:08 +02:00
13 lines
311 B
Text
13 lines
311 B
Text
#compdef co ci rcs
|
|
|
|
local nm=$compstate[nmatches]
|
|
|
|
[[ $words[1] = ci || $words[1] = rcs ]] && _files
|
|
|
|
if [[ $compstate[nmatches] -eq nm && -d RCS && $words[1] != ci ]]; then
|
|
local rep expl
|
|
|
|
rep=(RCS/$PREFIX*$SUFFIX,v(:t:s/\,v//))
|
|
_description expl 'RCS file'
|
|
(( $#rep )) && compadd "$expl[@]" - $rep
|
|
fi
|