]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rfkill: add toggle to bash completion
authorDaniel Peukert <daniel@peukert.cc>
Tue, 8 Nov 2022 18:48:08 +0000 (19:48 +0100)
committerDaniel Peukert <daniel@peukert.cc>
Tue, 8 Nov 2022 18:48:08 +0000 (19:48 +0100)
Signed-off-by: Daniel Peukert <daniel@peukert.cc>
bash-completion/rfkill

index 4643666e29fff000fa314b270226498d1823c236..fbaafd2d7b497eaad4c0ec6a64699b41c3b0ddc1 100644 (file)
@@ -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