]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: update for mkswap
authorKarel Zak <kzak@redhat.com>
Thu, 11 Jan 2024 14:36:19 +0000 (15:36 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 11 Jan 2024 14:36:19 +0000 (15:36 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/mkswap

index 33b0a70cebbc6ba854960845275d078e0da34b50..71ae77ede6f926882699bd16fe0f873ed7e44c1c 100644 (file)
@@ -25,13 +25,17 @@ _mkswap_module()
                        COMPREPLY=( $(compgen -W "bytes" -- $cur) )
                        return 0
                        ;;
+               '-s'|'--size')
+                       COMPREPLY=( $(compgen -W "bytes" -- $cur) )
+                       return 0
+                       ;;
                '-h'|'--help'|'-V'|'--version')
                        return 0
                        ;;
        esac
        case $cur in
                -*)
-                       OPTS="--check --force --pagesize --lock --label --swapversion --uuid --offset --verbose --version --help"
+                       OPTS="--check --force --pagesize --lock --label --swapversion --uuid --offset --verbose --version --help --size --file"
                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
                        return 0
                        ;;