diff options
Diffstat (limited to 'completions/dumpe2fs')
-rw-r--r-- | completions/dumpe2fs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/completions/dumpe2fs b/completions/dumpe2fs index 413a5bf..326564e 100644 --- a/completions/dumpe2fs +++ b/completions/dumpe2fs @@ -1,28 +1,27 @@ # dumpe2fs(8) completion -*- shell-script -*- -_dumpe2fs() +_comp_cmd_dumpe2fs() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return case $prev in -*[oV]) return ;; -*i) - _filedir + _comp_compgen_filedir return ;; esac if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) + _comp_compgen_usage return fi - cur=${cur:=/dev/} - _filedir + _comp_compgen -c "${cur:-/dev/}" filedir } && - complete -F _dumpe2fs dumpe2fs + complete -F _comp_cmd_dumpe2fs dumpe2fs # ex: filetype=sh |