2000-04-05 13:28:08 +02:00
|
|
|
#compdef co ci rcs
|
1999-04-15 20:05:38 +02:00
|
|
|
|
2001-01-15 10:11:31 +01:00
|
|
|
local ret=1
|
2000-04-05 13:28:08 +02:00
|
|
|
|
2001-01-15 10:11:31 +01:00
|
|
|
if [[ -d RCS && $service != ci ]]; then
|
2000-04-05 13:28:08 +02:00
|
|
|
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//))
|
2000-10-25 14:30:16 +02:00
|
|
|
(( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
|
1999-04-15 20:05:38 +02:00
|
|
|
fi
|
2000-10-25 14:30:16 +02:00
|
|
|
|
2001-01-15 10:11:31 +01:00
|
|
|
[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
|
2000-10-25 14:30:16 +02:00
|
|
|
|
|
|
|
return ret
|