UNPKG

606 BPlain TextView Raw
1#compdef chromix-too
2
3if [[ $CURRENT == 2 ]]
4then
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
16elif (( 2 < $CURRENT ))
17then
18 case $words[2] in
19 file ) _path_files ;;
20 esac
21fi