mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 04:58:57 +00:00
Add all boolean values to pacmd completion
PA accepts "0", "false" and "off" (among others) for false also for suspend-*.
This commit is contained in:
parent
8db1a5fae7
commit
68fcb790b0
1 changed files with 2 additions and 2 deletions
|
@ -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)" \
|
||||
|
|
Loading…
Reference in a new issue