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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux