summary refs log tree commit diff
path: root/Completion/Cvs/_cvs_watch
blob: 4db814ae5d9e180fb6198aac99c31e9f6ce34c55 (plain) (blame)
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