diff options
author | Sami Kerola | 2015-06-24 10:15:18 +0200 |
---|---|---|
committer | Karel Zak | 2015-07-30 11:39:17 +0200 |
commit | 158b8d691897f5a52ad82bdbab4b44e1cc42338d (patch) | |
tree | 1ed3bf2c4e35d348ec9db572e923dae93791dc46 /bash-completion | |
parent | fsck.minix: add minix v3 support (diff) | |
download | kernel-qcow2-util-linux-158b8d691897f5a52ad82bdbab4b44e1cc42338d.tar.gz kernel-qcow2-util-linux-158b8d691897f5a52ad82bdbab4b44e1cc42338d.tar.xz kernel-qcow2-util-linux-158b8d691897f5a52ad82bdbab4b44e1cc42338d.zip |
fsck.minix: introduce long options to the command
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/fsck.minix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bash-completion/fsck.minix b/bash-completion/fsck.minix index b2b2860da..ac4571e71 100644 --- a/bash-completion/fsck.minix +++ b/bash-completion/fsck.minix @@ -1,16 +1,16 @@ _fsck.minix_module() { - local cur prev OPTS + local cur OPTS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - case $prev in - '-V'|'--version') + case $cur in + -*) + OPTS="--list --auto --repair --verbose --super --uncleared --force --help --version" + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; esac - OPTS="-l -a -r -v -s -m -f --version" - COMPREPLY=( $(compgen -W "${OPTS[*]} $(lsblk -pnro name)" -- $cur) ) + COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) ) return 0 } complete -F _fsck.minix_module fsck.minix |