]>
Commit | Line | Data |
---|---|---|
bf60993c SK |
1 | _fsck.minix_module() |
2 | { | |
158b8d69 | 3 | local cur OPTS |
bf60993c SK |
4 | COMPREPLY=() |
5 | cur="${COMP_WORDS[COMP_CWORD]}" | |
158b8d69 SK |
6 | case $cur in |
7 | -*) | |
8 | OPTS="--list --auto --repair --verbose --super --uncleared --force --help --version" | |
9 | COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) | |
d4f9b8d7 VS |
10 | return 0 |
11 | ;; | |
12 | esac | |
6ead91ce | 13 | compopt -o bashdefault -o default |
158b8d69 | 14 | COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) ) |
bf60993c SK |
15 | return 0 |
16 | } | |
17 | complete -F _fsck.minix_module fsck.minix |