1ad8fde027ea3e66c0ed8f1498dfcfb07e0aefe6
- Author
- Philipp Bosch <hello@pb.io>
- Committer
- Philipp Bosch <hello@pb.io>
- Date
Message
Add basic autocompletion for terminitor (https://github.com/achiu/terminitor).
Diff
1diff --git a/plugins/terminitor/_terminitor b/plugins/terminitor/_terminitor
2new file mode 100644
3index 0000000000000000000000000000000000000000..7d267643b4fcd8299139c4b0ed24a50318bdf94f
4--- /dev/null
5+++ b/plugins/terminitor/_terminitor
6@@ -0,0 +1,26 @@
7+#compdef terminitor
8+#autoload
9+
10+# terminitor zsh completion
11+
12+local -a _1st_arguments
13+_1st_arguments=(
14+ 'create:create a Termfile in directory'
15+ 'delete:delete terminitor script'
16+ 'edit:open termitor script'
17+ 'fetch:clone the designated repo and run setup'
18+ 'help:Describe available tasks or one specific task'
19+ 'init:create initial root terminitor folder'
20+ 'list:lists all terminitor scripts'
21+ 'setup:execute setup in the terminitor script'
22+ 'start:runs the terminitor script'
23+ 'update:update Terminitor to new global path(.config/.terminitor)'
24+)
25+
26+_arguments \
27+ '*:: :->subcmds' && return 0
28+
29+if (( CURRENT == 1 )); then
30+ _describe -t commands "terminitor task" _1st_arguments
31+ return
32+fi