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

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Fri Nov 14 04:26:24 PST 2014


On Sat, 2014-11-01 at 18:28 +0200, Tanu Kaskinen wrote:
> 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');;

Applied.

-- 
Tanu



More information about the pulseaudio-discuss mailing list