[pulseaudio-discuss] [PATCH] shell-completion: zsh: Fix set-default-sink/source completion

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Sat Nov 1 09:28:33 PDT 2014


The _devices() function didn't recognize the set-default-* commands,
and as a result it didn't generate any completions.
---
 shell-completion/zsh/_pulseaudio | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/shell-completion/zsh/_pulseaudio b/shell-completion/zsh/_pulseaudio
index cbccaf2..4f4043a 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');;
-- 
1.9.3



More information about the pulseaudio-discuss mailing list