summaryrefslogtreecommitdiff
path: root/zcompletion
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-09-16 23:46:19 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-09-16 23:49:27 +0200
commit719d275839c755c8e0749a3c49c84574ab6d81ae (patch)
tree495a83a332056b6f481b6cef471c56cf92abe678 /zcompletion
parent7cf9d72f20a26380d6bb15db1c2f111b104710dc (diff)
downloadPublic-719d275839c755c8e0749a3c49c84574ab6d81ae.tar.gz
Public-719d275839c755c8e0749a3c49c84574ab6d81ae.tar.zst
Public-719d275839c755c8e0749a3c49c84574ab6d81ae.zip
Add configuration examples for script
Diffstat (limited to 'zcompletion')
-rw-r--r--zcompletion/_cmdtemp13
1 files changed, 13 insertions, 0 deletions
diff --git a/zcompletion/_cmdtemp b/zcompletion/_cmdtemp
new file mode 100644
index 0000000..fc67ad0
--- /dev/null
+++ b/zcompletion/_cmdtemp
@@ -0,0 +1,13 @@
1#compdef cmdtemp
2
3_cmdtemp() {
4 _arguments -s -S \
5 "*::cmdtemp command:_list_commands"
6 return 0
7}
8
9
10(( $+functions[_list_commands] )) ||
11_list_commands() {
12 _message "`cmdtemp`"
13}