Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Completion script for mixerctl



Completion script for OpenBSD's mixerctl. Could be improved by completing values
with mixerctl -nv, but I couldn't figure out how to make _arguments do that.

- Matthew Martin


#compdef mixerctl

: ${(A)_cache_mixerctlvars:=${${(f)"$(mixerctl -a)"}%%=*}}
_arguments -s -S -A "-*" \
  '(-q -t *)-a[Print all device variables and their current values]' \
  '-f[Specify an alternative audio mixing device]:file:_files -g "*(-%c)"' \
  '(-q -t)-n[Suppress printing of the variable name]' \
  '(-a -n -v)-q[Suppress all printing when setting a variable]' \
  '(-a -n -v)-t[Attempt to select the next possible value of an enum]' \
  '(-q -t)-v[Show all possible values of variables]' \
  '(-a)*:mixerctl varible:_multi_parts -i -S = -q . _cache_mixerctlvars'



Messages sorted by: Reverse Date, Date, Thread, Author