]> git.immae.eu Git - perso/Immae/Projets/Scripts/Public.git/blobdiff - zcompletion/_cmdtemp
Add configuration examples for script
[perso/Immae/Projets/Scripts/Public.git] / zcompletion / _cmdtemp
diff --git a/zcompletion/_cmdtemp b/zcompletion/_cmdtemp
new file mode 100644 (file)
index 0000000..fc67ad0
--- /dev/null
@@ -0,0 +1,13 @@
+#compdef cmdtemp
+
+_cmdtemp() {
+    _arguments -s -S \
+        "*::cmdtemp command:_list_commands"
+    return 0
+}
+
+
+(( $+functions[_list_commands] )) ||
+_list_commands() {
+    _message "`cmdtemp`"
+}