1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-04 01:41:18 +02:00
zsh/Completion/User/_rcs

15 lines
277 B
Plaintext
Raw Normal View History

#compdef co ci rcs
1999-04-15 20:05:38 +02:00
local ret=1
if [[ -d RCS && $service != ci ]]; then
local rep expl
1999-04-15 20:05:38 +02:00
2001-03-13 19:16:44 +01:00
rep=(RCS/*,v(D:t:s/\,v//))
(( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
1999-04-15 20:05:38 +02:00
fi
[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
return ret