Package: zsh Version: 4.3.0-dev-5-1 Severity: wishlist Tags: patch Just made a completion function for analyseplugin, a helper tool in the ladspa package. Hope you find it useful :)
#compdef analyseplugin local expl context state line nopts ret=1 typeset -A opt_args _arguments \ '-l[Gives a brief listing (one line per plugin)]' \ '(-)1:plugin file:->pfile' \ '(-)2::plugin label:->plabel' && ret=0 case "$state" in pfile) _wanted plugin-files expl 'plugin file' compadd \ ${~${^${${(f)"$(_call_program ladspa-plugins listplugins 2> /dev/null)"}:#[[:space:]]*}/%:/(:t:r)}} \ && return ;; plabel) typeset -a plabel nopts=(${words:#-*}) plabel=(${${(f)"$($nopts[1] -l $nopts[2] 2> /dev/null)"}/[[:space:]]##/:}) _describe -t plugin-label 'plugin label' plabel && return ;; esac return ret
Regards, Ramkumar -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (101, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.15-archck2 Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Versions of packages zsh depends on: ii debconf [debconf-2.0] 1.4.71 Debian configuration management sy ii libc6 2.3.5-13 GNU C Library: Shared libraries an ii libncurses5 5.5-1 Shared libraries for terminal hand Versions of packages zsh recommends: ii libcap1 1:1.10-14 support for getting/setting POSIX. ii libpcre3 6.4-1.1 Perl 5 Compatible Regular Expressi -- no debconf information -- WARN_(accel)("msg null; should hang here to be win compatible\n"); -- WINE source code