Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion script for mixerctl
- X-seq: zsh-workers 34637
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Completion script for mixerctl
- Date: Mon, 2 Mar 2015 23:33:08 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1bSV288/CWNOjFKHpAbPKeAEWLI4+goQK6903QaQwPY=; b=a8QrteLothDUBaSXCUIxuLfa6w4LlYjsQB6ZMat2ZmFZcicKSiwwZ2GwXRs3oY7rUt QcObLayQz65jFNu0/YIlkYa/VP1QwtCjBWXoO/Ptwd+wn0IKMr97EiS9plLX3TytCK3h UHTIWHv2WolLAy9lt56KaWYY8s9e3B1j2+d9skK0dlk4ZUxNBRrRvoFhCWqQQ/2963yg sPSUmt4Zai9vYJZoCvuPGsu0y6PnC99bKcMqM86V7HaGzyqWlgrSi1q72Vh0vetDnDwM aZMNHonihlI1SKuNDT6ADw7blBr40YlYvPeIyVcLfNpVshHS2E4hFi7h26qXgE/wmGZf 5M6A==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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