mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 17:24:50 +01:00
21 lines
365 B
Text
21 lines
365 B
Text
#autoload
|
|
|
|
if (( CURRENT == 2 )); then
|
|
compadd on off add remove
|
|
else
|
|
case "$words[2]" in
|
|
on|off) # "+lR"
|
|
_arguments -s \
|
|
-{l,R} \
|
|
':watch command:' \
|
|
':*:file:_cvs_files'
|
|
;;
|
|
add|remove) # "+lRa:"
|
|
_arguments -s \
|
|
-{l,R} \
|
|
'*-a+:action:(edit unedit commit all none)' \
|
|
':watch command:' \
|
|
':*:file:_cvs_files'
|
|
;;
|
|
esac
|
|
fi
|