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
2000-11-06 17:26:39 +00:00

15 lines
284 B
Plaintext

#compdef co ci rcs
local cmd="${words[1]:t}" ret=1
if [[ -d RCS && $cmd != ci ]]; then
local rep expl
rep=(RCS/*,v(:t:s/\,v//))
(( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
fi
[[ $cmd = ci || $cmd = rcs || ret -eq 1 ]] && _files && ret=0
return ret