blob: 11cb7a59f72a2c6afa29670041ff4f9f31e156fb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#compdef co ci rcs
local ret=1
if [[ -d RCS && $service != ci ]]; then
local rep expl
rep=(RCS/*,v(:t:s/\,v//))
(( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
fi
[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
return ret
|