diff options
author | poljar (Damir Jelić) <poljarinho@gmail.com> | 2013-02-01 01:57:49 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2013-02-01 07:11:15 +0200 |
commit | a5af95f83dc6607cae4befa8816be6ba1e36a3b7 (patch) | |
tree | 615eea715bc350f75fa572617f26dde47e32a1ea /shell-completion/pulseaudio-bash-completion.sh | |
parent | 58def1fd1de0de7d5732519539503a7ad83f24a2 (diff) |
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_
Diffstat (limited to 'shell-completion/pulseaudio-bash-completion.sh')
-rw-r--r-- | shell-completion/pulseaudio-bash-completion.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell-completion/pulseaudio-bash-completion.sh b/shell-completion/pulseaudio-bash-completion.sh index 686178eea..a82b10ef6 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")) |