zsh-workers
 help / color / mirror / code / Atom feed
* Completion script for mixerctl
@ 2015-03-03  5:33 Matthew Martin
  0 siblings, 0 replies; only message in thread
From: Matthew Martin @ 2015-03-03  5:33 UTC (permalink / raw)
  To: zsh-workers

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'


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-03  5:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03  5:33 Completion script for mixerctl Matthew Martin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).