[pulseaudio-commits] shell-completion/pulseaudio-bash-completion.sh

Tanu Kaskinen tanuk at kemper.freedesktop.org
Thu Jan 31 21:11:50 PST 2013


 shell-completion/pulseaudio-bash-completion.sh |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit a5af95f83dc6607cae4befa8816be6ba1e36a3b7
Author: poljar (Damir Jelić) <poljarinho at gmail.com>
Date:   Fri Feb 1 01:57:49 2013 +0100

    bash-completion: Don't complete devices in the list commands
    
    This fixes some wrong completion for the list commands for example:
        pactl list sinks _sink_name_

diff --git a/shell-completion/pulseaudio-bash-completion.sh b/shell-completion/pulseaudio-bash-completion.sh
index 686178e..a82b10e 100644
--- a/shell-completion/pulseaudio-bash-completion.sh
+++ b/shell-completion/pulseaudio-bash-completion.sh
@@ -174,6 +174,7 @@ _pactl() {
             _known_hosts_real "$cur"
             ;;
     esac
+    [[ $COMPREPLY ]] && return 0
 
     case $prev in
         list) COMPREPLY=($(compgen -W '${list_types[*]}' -- "$cur")) ;;
@@ -234,6 +235,7 @@ _pactl() {
         -s)
             _known_hosts_real "$cur" ;;
     esac
+    [[ $COMPREPLY ]] && return 0
 
     case $cur in
         --server=*)
@@ -316,6 +318,7 @@ _pacmd() {
     esac
 
     case $prev in
+        list-*) ;;
         describe-module|load-module)
             comps=$(__all_modules)
             COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur"))



More information about the pulseaudio-commits mailing list