diff options
Diffstat (limited to 'Completion/Unix/Command/_rcs')
-rw-r--r-- | Completion/Unix/Command/_rcs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_rcs b/Completion/Unix/Command/_rcs new file mode 100644 index 000000000..7ff3b8326 --- /dev/null +++ b/Completion/Unix/Command/_rcs @@ -0,0 +1,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 |