1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#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