From 68fcb790b0725a08e82e2b823542e2e9695bbf90 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 14 Jan 2016 23:33:31 +0100 Subject: [PATCH] Add all boolean values to pacmd completion PA accepts "0", "false" and "off" (among others) for false also for suspend-*. --- share/completions/pactl.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/pactl.fish b/share/completions/pactl.fish index 5ac92e3f9..6a0a38348 100644 --- a/share/completions/pactl.fish +++ b/share/completions/pactl.fish @@ -79,9 +79,9 @@ for t in source sink complete -f -c pactl -n "__fish_seen_subcommand_from suspend-$t; and not __fish_seen_subcommand_from (__fish_pa_print_type "$t"s)" \ -a "(__fish_pa_complete_type "$t"s)" complete -f -c pactl -n "__fish_seen_subcommand_from suspend-$t; and __fish_seen_subcommand_from (__fish_pa_print_type "$t"s)" \ - -a '0' -d "Resume" + -a '0 false off' -d "Resume" complete -f -c pactl -n "__fish_seen_subcommand_from suspend-$t; and __fish_seen_subcommand_from (__fish_pa_print_type "$t"s)" \ - -a '1' -d "Suspend" + -a '1 true on' -d "Suspend" complete -f -c pactl -n "__fish_seen_subcommand_from set-$t-port; and not __fish_seen_subcommand_from (__fish_pa_print_type "$t"s)" \ -a "(__fish_pa_complete_type "$t"s)" complete -f -c pactl -n "__fish_seen_subcommand_from set-$t-port; and __fish_seen_subcommand_from (__fish_pa_print_type "$t"s)" \