blob: 6c4a1d9d6d97f8c1c1dac0a8ea69a4a022b02086 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#compdef co ci rcs
local nm=$compstate[nmatches]
[[ $words[1] = ci || $words[1] = rcs ]] && _files
if [[ $compstate[nmatches] -eq nm && -d RCS && $words[1] != ci ]]; then
local rep expl
rep=(RCS/$PREFIX*$SUFFIX,v(:t:s/\,v//))
(( $#rep )) && _wanted files expl 'RCS file' compadd - $rep
fi
|