]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/mkfs.minix
Merge branch 'highsierra' of https://github.com/pali/util-linux
[thirdparty/util-linux.git] / bash-completion / mkfs.minix
index 3a3602e6e5806211245a8b3892e8aee9dcd8f29c..e9413f7a9b930ccaf9620bebbfb1b6cd5f91c003 100644 (file)
@@ -5,29 +5,28 @@ _mkfs.minix_module()
        cur="${COMP_WORDS[COMP_CWORD]}"
        prev="${COMP_WORDS[COMP_CWORD-1]}"
        case $prev in
-               '-i')
+               '-i'|'--inodes')
                        COMPREPLY=( $(compgen -W "inodes" -- $cur) )
                        return 0
                        ;;
-               '-l')
-                       COMPREPLY=( $(compgen -W "badblocks-file" -- $cur) )
+               '-l'|'--badblocks')
+                       compopt -o filenames
+                       COMPREPLY=( $(compgen -f -- $cur) )
                        return 0
                        ;;
-               '-n')
-                       COMPREPLY=( $(compgen -W "14 30" -- $cur) )
-                       return 0
-                       ;;
-               '-V'|'--version')
+               '-n'|'--namelength')
+                       COMPREPLY=( $(compgen -W "14 30 60" -- $cur) )
                        return 0
                        ;;
        esac
        case $cur in
                -*)
-                       OPTS="-c -i -l -n -1 -2 -3"
+                       OPTS="--namelength --inodes --check --badblocks --help --version -1 -2 -3"
                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
                        return 0
                        ;;
        esac
+       compopt -o bashdefault -o default
        COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) )
        return 0
 }