aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2020-09-17 09:28:43 +0000
committerjohannst <johannst@users.noreply.github.com>2020-09-17 09:28:43 +0000
commitb9d85d61889c54ac83d8d93f2dd2427e882abab0 (patch)
tree7928c28f26775ed94322a5fde27f22fa51340c2a /tools
parent449b66753370d6b64bc9aa7e5c0592ba0fe6f680 (diff)
downloadnotes-b9d85d61889c54ac83d8d93f2dd2427e882abab0.tar.gz
notes-b9d85d61889c54ac83d8d93f2dd2427e882abab0.zip
deploy: 7a8d3b4eec4056600625f2d359320c8a01fa88b3
Diffstat (limited to 'tools')
-rw-r--r--tools/zsh.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/zsh.html b/tools/zsh.html
index 6584e5b..f591b11 100644
--- a/tools/zsh.html
+++ b/tools/zsh.html
@@ -239,9 +239,9 @@ function _foo_color() {
function _foo() {
_arguments \
&quot;-c[define color]:color:-&gt;s_color&quot; \
- &quot;-s[select sound]:color:(low high)&quot; \
+ &quot;-s[select sound]:sound:(low high)&quot; \
&quot;-f[select file]:file:_files&quot; \
- &quot;-d[select dir]:fir:_files -/&quot; \
+ &quot;-d[select dir]:dir:_files -/&quot; \
&quot;-h[help]&quot;
case $state in
@@ -249,6 +249,13 @@ function _foo() {
esac
}
</code></pre>
+<blockquote>
+<p><code>_files</code> is a zsh builtin utility function to complete files/dirs see</p>
+<ul>
+<li><a href="http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-Functions">zsh completion functions</a></li>
+<li><a href="https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org#utility-functions">zsh completion utility functions</a></li>
+</ul>
+</blockquote>
</main>