aboutsummaryrefslogtreecommitdiffhomepage
path: root/print.html
diff options
context:
space:
mode:
Diffstat (limited to 'print.html')
-rw-r--r--print.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/print.html b/print.html
index 190fceb..d318063 100644
--- a/print.html
+++ b/print.html
@@ -253,9 +253,9 @@ function _foo_color() {
function _foo() {
_arguments \
"-c[define color]:color:->s_color" \
- "-s[select sound]:color:(low high)" \
+ "-s[select sound]:sound:(low high)" \
"-f[select file]:file:_files" \
- "-d[select dir]:fir:_files -/" \
+ "-d[select dir]:dir:_files -/" \
"-h[help]"
case $state in
@@ -263,6 +263,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>
<h1><a class="header" href="#bash1" id="bash1">bash(1)</a></h1>
<h2><a class="header" href="#expansion" id="expansion">Expansion</a></h2>
<h3><a class="header" href="#generator" id="generator">Generator</a></h3>