summaryrefslogtreecommitdiff
path: root/Completion/BSD/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/BSD/Command')
-rw-r--r--Completion/BSD/Command/_kld2
-rw-r--r--Completion/BSD/Command/_mixerctl11
-rw-r--r--Completion/BSD/Command/_portsnap2
3 files changed, 13 insertions, 2 deletions
diff --git a/Completion/BSD/Command/_kld b/Completion/BSD/Command/_kld
index b967f33c4..34f26f1e9 100644
--- a/Completion/BSD/Command/_kld
+++ b/Completion/BSD/Command/_kld
@@ -4,7 +4,7 @@
_kld_module() {
local ret=1
- compadd "$@" - /boot/kernel/*.ko(-.:t) /modules/*.ko(-.:t) && ret=0
+ compadd "$@" - /boot/{kernel,modules}/*.ko(-.:t) && ret=0
_files "$@" -g '*.ko(-.)' && ret=0
return ret
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'
diff --git a/Completion/BSD/Command/_portsnap b/Completion/BSD/Command/_portsnap
index db71fbc60..0803a842e 100644
--- a/Completion/BSD/Command/_portsnap
+++ b/Completion/BSD/Command/_portsnap
@@ -1,6 +1,6 @@
#compdef portsnap
-local context state line
+local curcontext="$curcontext" state line
typeset -A opt_args
flags=(