diff options
Diffstat (limited to '')
-rw-r--r-- | completions/dumpe2fs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/completions/dumpe2fs b/completions/dumpe2fs new file mode 100644 index 0000000..413a5bf --- /dev/null +++ b/completions/dumpe2fs @@ -0,0 +1,28 @@ +# dumpe2fs(8) completion -*- shell-script -*- + +_dumpe2fs() +{ + local cur prev words cword + _init_completion || return + + case $prev in + -*[oV]) + return + ;; + -*i) + _filedir + return + ;; + esac + + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) + return + fi + + cur=${cur:=/dev/} + _filedir +} && + complete -F _dumpe2fs dumpe2fs + +# ex: filetype=sh |