about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2015-03-02 23:33:08 -0600
committerPeter Stephenson <pws@zsh.org>2015-03-03 09:30:15 +0000
commit90d433b358763069c4ca912002c7963481e4f9bf (patch)
treef1d94419a154d06539023d8335754bc054995f9b
parent4edcacbcf39415645a92b38e1f8b89780013a6b0 (diff)
downloadzsh-90d433b358763069c4ca912002c7963481e4f9bf.tar.gz
zsh-90d433b358763069c4ca912002c7963481e4f9bf.tar.xz
zsh-90d433b358763069c4ca912002c7963481e4f9bf.zip
34637: New mixerctl completion for BSD
-rw-r--r--ChangeLog5
-rw-r--r--Completion/BSD/Command/_mixerctl11
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2efe5932c..fb5c0a207 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-03  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* Matthew Martin: 34637: Completion/BSD/Command/_mixerctl:
+	new completion.
+
 2015-02-28  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* users/19934: Doc/Zsh/params.yo: document %D{...} for WATCHFMT
diff --git a/Completion/BSD/Command/_mixerctl b/Completion/BSD/Command/_mixerctl
new file mode 100644
index 000000000..a43aed4cb
--- /dev/null
+++ b/Completion/BSD/Command/_mixerctl
@@ -0,0 +1,11 @@
+#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'