From 3383356263e19fcd2ee3b21cc57cc9c15b385c6e Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Tue, 8 Nov 2022 19:48:08 +0100 Subject: [PATCH] rfkill: add toggle to bash completion Signed-off-by: Daniel Peukert --- bash-completion/rfkill | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash-completion/rfkill b/bash-completion/rfkill index 4643666e29..fbaafd2d7b 100644 --- a/bash-completion/rfkill +++ b/bash-completion/rfkill @@ -5,7 +5,7 @@ _rfkill_module() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in - 'list'|'block'|'unblock') + 'list'|'block'|'unblock'|'toggle') local targets targets="$(rfkill --output=id,type --noheadings list)" COMPREPLY=( $(compgen -W "all $targets" -- $cur) ) @@ -33,6 +33,7 @@ _rfkill_module() list block unblock + toggle --json --noheadings --output -- 2.47.2