1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 10:20:55 +01:00
zsh/Completion/User/_rcs
2000-03-23 04:19:26 +00:00

12 lines
299 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//))
(( $#rep )) && _wanted files expl 'RCS file' compadd - $rep
fi