1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
zsh/Completion/User/_rcs

13 lines
304 B
Plaintext
Raw Normal View History

#compdef co ci rcs
1999-04-15 20:05:38 +02:00
local nm=$compstate[nmatches] cmd="${words[1]:t}"
[[ $cmd = ci || $cmd = rcs ]] && _files
if [[ $compstate[nmatches] -eq nm && -d RCS && $cmd != ci ]]; then
local rep expl
1999-04-15 20:05:38 +02:00
rep=(RCS/$PREFIX*$SUFFIX,v(:t:s/\,v//))
(( $#rep )) && _wanted files expl 'RCS file' compadd - $rep
1999-04-15 20:05:38 +02:00
fi