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_
This commit is contained in:
poljar (Damir Jelić) 2013-02-01 01:57:49 +01:00 committed by Tanu Kaskinen
parent 58def1fd1d
commit a5af95f83d

View file

@ -174,6 +174,7 @@ _pactl() {
_known_hosts_real "$cur" _known_hosts_real "$cur"
;; ;;
esac esac
[[ $COMPREPLY ]] && return 0
case $prev in case $prev in
list) COMPREPLY=($(compgen -W '${list_types[*]}' -- "$cur")) ;; list) COMPREPLY=($(compgen -W '${list_types[*]}' -- "$cur")) ;;
@ -234,6 +235,7 @@ _pactl() {
-s) -s)
_known_hosts_real "$cur" ;; _known_hosts_real "$cur" ;;
esac esac
[[ $COMPREPLY ]] && return 0
case $cur in case $cur in
--server=*) --server=*)
@ -316,6 +318,7 @@ _pacmd() {
esac esac
case $prev in case $prev in
list-*) ;;
describe-module|load-module) describe-module|load-module)
comps=$(__all_modules) comps=$(__all_modules)
COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur")) COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur"))