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')
30 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
35 MPOINTS=$(findmnt -rno SOURCE,TARGET | awk '/^\/dev/{print $2}')
36 COMPREPLY=( $(compgen -W "$MPOINTS" -- $cur) )
39 complete -F _fstrim_module fstrim