1 | #compdef chromix-too
|
2 |
|
3 | if [[ $CURRENT == 2 ]]
|
4 | then
|
5 | local -a options
|
6 | options+=( "ls[(filter and) list tabs]" )
|
7 | options+=( "tid[(filter and) list tab identifiers]" )
|
8 | options+=( "focus[(filter and) focus tabs]" )
|
9 | options+=( "reload[(filter and) reload tabs]" )
|
10 | options+=( "rm[(filter and) remove tabs]" )
|
11 | options+=( "open[create new tabs]" )
|
12 | options+=( "file[open (and possibly reload) files]" )
|
13 | options+=( "ping[verify that server and extension are running]" )
|
14 | _values 'commands' $options
|
15 |
|
16 | elif (( 2 < $CURRENT ))
|
17 | then
|
18 | case $words[2] in
|
19 | file ) _path_files ;;
|
20 | esac
|
21 | fi
|