5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
8 '-o'|'--offset'|'-l'|'--length'|'-m'|'--minimum')
9 COMPREPLY=( $(compgen -W "num" -- $cur) )
12 '-h'|'--help'|'-V'|'--version')
18 OPTS="-o --offset -l --length -m --minimum -v --verbose -h --help -V --version"
19 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
24 MPOINTS=$(findmnt -rno SOURCE | grep ^/dev)
25 COMPREPLY=( $(compgen -W "$MPOINTS" -- $cur) )
28 complete -F _fstrim_module fstrim