[pulseaudio-discuss] [PATCH] shell-completion: Add list-cards to the pacmd completion.
Tanu Kaskinen
tanu.kaskinen at linux.intel.com
Wed May 22 06:25:48 PDT 2013
On Wed, 2013-05-22 at 14:58 +0200, poljar (Damir Jelić) wrote:
> The list-cards command was missing for both of the shell completions.
> This fixes it.
> ---
> shell-completion/pulseaudio-bash-completion.sh | 2 +-
> shell-completion/pulseaudio-zsh-completion.zsh | 1 +
> 2 files changed, 2 insertions(+), 1 deletion(-)
Thanks, applied. I made a small fix.
> diff --git a/shell-completion/pulseaudio-bash-completion.sh b/shell-completion/pulseaudio-bash-completion.sh
> index a82b10e..5f60092 100644
> --- a/shell-completion/pulseaudio-bash-completion.sh
> +++ b/shell-completion/pulseaudio-bash-completion.sh
> @@ -259,7 +259,7 @@ _pacmd() {
> local cur prev words cword preprev command
> local comps
> local flags='-h --help --version'
> - local commands=(exit help list-modules list-sinks list-sources list-clients
> + local commands=(exit help list-modules list-cards list-sinks list-sources list-clients
> list-samples list-sink-inputs list-source-outputs stat info
> load-module unload-module describe-module set-sink-volume
> set-source-volume set-sink-input-volume set-source-output-volume
> diff --git a/shell-completion/pulseaudio-zsh-completion.zsh b/shell-completion/pulseaudio-zsh-completion.zsh
> index d73b74d..cde82b3 100644
> --- a/shell-completion/pulseaudio-zsh-completion.zsh
> +++ b/shell-completion/pulseaudio-zsh-completion.zsh
> @@ -329,6 +329,7 @@ _pacmd_completion() {
> _pacmd_commands=(
> 'help: show help and exit'
> 'list-modules: list modules'
> + 'list-cards: list clients'
Should be "list cards", not "list clients".
--
Tanu
More information about the pulseaudio-discuss
mailing list