diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:55:25 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:55:25 +0000 |
| commit | 2193b938ceff4de95c252843e7c01a21945c13ed (patch) | |
| tree | deb5acfde93f5319a2b938e484b1d83ad9050d45 /Completion/Unix/Command/_look | |
| parent | moved to Completion/Unix/Command/_look (diff) | |
| download | zsh-2193b938ceff4de95c252843e7c01a21945c13ed.tar zsh-2193b938ceff4de95c252843e7c01a21945c13ed.tar.gz zsh-2193b938ceff4de95c252843e7c01a21945c13ed.tar.bz2 zsh-2193b938ceff4de95c252843e7c01a21945c13ed.tar.lz zsh-2193b938ceff4de95c252843e7c01a21945c13ed.tar.xz zsh-2193b938ceff4de95c252843e7c01a21945c13ed.tar.zst zsh-2193b938ceff4de95c252843e7c01a21945c13ed.zip | |
moved from Completion/User/_look
Diffstat (limited to 'Completion/Unix/Command/_look')
| -rw-r--r-- | Completion/Unix/Command/_look | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_look b/Completion/Unix/Command/_look new file mode 100644 index 000000000..06cf2c4ec --- /dev/null +++ b/Completion/Unix/Command/_look @@ -0,0 +1,21 @@ +#compdef look + +local curcontext="$curcontext" state line +typeset -A opt_args + +_arguments -C -s \ + '-t+[termination character]:termination character:' \ + '-f[case insensitive]' \ + '-d[dictionary order]' \ + ':string:->string' \ + ':dictionary file:_files' && return 0 + +case "$state" in +string) + if [[ -n "$PREFIX" ]]; then + _wanted values expl 'word prefix' compadd - $(_call_program values $words[1] $PREFIX) + else + _message 'word prefix' + fi + ;; +esac |
