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"
;;
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"))