mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-10-29 05:40:23 -04:00 
			
		
		
		
	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:
		
							parent
							
								
									58def1fd1d
								
							
						
					
					
						commit
						a5af95f83d
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -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")) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 poljar (Damir Jelić)
						poljar (Damir Jelić)