summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-11-01 18:28:33 +0200
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-11-14 14:24:10 +0200
commitf48c16113a4428f33f4a2c1f6801fce634885b93 (patch)
tree0c807942b1585895d37882d24bf7e557f919564b
parent9ae85b1a29b5b9a0637a0f755457f749a141c920 (diff)
shell-completion: zsh: Fix set-default-sink/source completion
The _devices() function didn't recognize the set-default-* commands, and as a result it didn't generate any completions.
-rw-r--r--shell-completion/zsh/_pulseaudio2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell-completion/zsh/_pulseaudio b/shell-completion/zsh/_pulseaudio
index b8dd5935b..c76d95832 100644
--- a/shell-completion/zsh/_pulseaudio
+++ b/shell-completion/zsh/_pulseaudio
@@ -19,6 +19,8 @@ _devices() {
case $words[$((CURRENT - 1))] in
set-sink-input-*) cmd=('sink-inputs');;
set-sink-*) cmd=('sinks');;
+ set-default-sink) cmd=('sinks');;
+ set-default-source) cmd=('sources');;
set-source-output-*) cmd=('source-outputs');;
set-source-*) cmd=('sources');;
suspend-sink) cmd=('sinks');;