mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
shell-completion: add new subcommand get-* for bash
Added to shell-completion of bash as there is no completion for the subcommand get-*. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/735>
This commit is contained in:
parent
dc027d69e8
commit
9f725cafb8
1 changed files with 8 additions and 5 deletions
|
|
@ -116,12 +116,13 @@ _pactl() {
|
||||||
modules samples clients message-handlers'
|
modules samples clients message-handlers'
|
||||||
local commands=(stat info list exit upload-sample play-sample remove-sample
|
local commands=(stat info list exit upload-sample play-sample remove-sample
|
||||||
load-module unload-module move-sink-input move-source-output
|
load-module unload-module move-sink-input move-source-output
|
||||||
suspend-sink suspend-source set-card-profile set-default-sink
|
suspend-sink suspend-source set-card-profile get-default-sink
|
||||||
set-sink-port set-default-source set-source-port set-sink-volume
|
set-default-sink set-sink-port get-default-source set-default-source
|
||||||
|
set-source-port get-sink-volume set-sink-volume get-source-volume
|
||||||
set-source-volume set-sink-input-volume set-source-output-volume
|
set-source-volume set-sink-input-volume set-source-output-volume
|
||||||
set-sink-mute set-source-mute set-sink-input-mute
|
get-sink-mute set-sink-mute get-source-mute set-source-mute
|
||||||
set-source-output-mute set-sink-formats set-port-latency-offset
|
set-sink-input-mute set-source-output-mute set-sink-formats
|
||||||
subscribe send-message help)
|
set-port-latency-offset subscribe send-message help)
|
||||||
|
|
||||||
_init_completion -n = || return
|
_init_completion -n = || return
|
||||||
preprev=${words[$cword-2]}
|
preprev=${words[$cword-2]}
|
||||||
|
|
@ -186,6 +187,8 @@ _pactl() {
|
||||||
|
|
||||||
remove-sample) ;; # TODO
|
remove-sample) ;; # TODO
|
||||||
|
|
||||||
|
get-default*) ;;
|
||||||
|
|
||||||
load-module)
|
load-module)
|
||||||
comps=$(__all_modules)
|
comps=$(__all_modules)
|
||||||
COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur"))
|
COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue