about summary refs log tree commit diff
path: root/Completion/User/_rcs
blob: 7ff3b8326de1b3a3a033d79437112f4d112981b2 (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(D: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