| 1 | 1 | new file mode 100644 | 
| ... | ... | @@ -0,0 +1,26 @@ | 
| 0 | +#compdef terminitor | |
| 1 | +#autoload | |
| 2 | + | |
| 3 | +# terminitor zsh completion | |
| 4 | + | |
| 5 | +local -a _1st_arguments | |
| 6 | +_1st_arguments=( | |
| 7 | + 'create:create a Termfile in directory' | |
| 8 | + 'delete:delete terminitor script' | |
| 9 | + 'edit:open termitor script' | |
| 10 | + 'fetch:clone the designated repo and run setup' | |
| 11 | + 'help:Describe available tasks or one specific task' | |
| 12 | + 'init:create initial root terminitor folder' | |
| 13 | + 'list:lists all terminitor scripts' | |
| 14 | + 'setup:execute setup in the terminitor script' | |
| 15 | + 'start:runs the terminitor script' | |
| 16 | + 'update:update Terminitor to new global path(.config/.terminitor)' | |
| 17 | +) | |
| 18 | + | |
| 19 | +_arguments \ | |
| 20 | + '*:: :->subcmds' && return 0 | |
| 21 | + | |
| 22 | +if (( CURRENT == 1 )); then | |
| 23 | + _describe -t commands "terminitor task" _1st_arguments | |
| 24 | + return | |
| 25 | +fi |