5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 local prefix realcur OUTPUT_ALL OUTPUT
11 prefix="${cur%$realcur}"
12 OUTPUT_ALL='PAGES SIZE FILE RES'
13 for WORD in $OUTPUT_ALL; do
14 if ! [[ $prefix == *"$WORD"* ]]; then
15 OUTPUT="$WORD $OUTPUT"
19 COMPREPLY=( $(compgen -P "$prefix" -W "$OUTPUT" -S ',' -- "$realcur") )
22 '-h'|'--help'|'-V'|'--version')
37 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
43 COMPREPLY=( $(compgen -f -- ${cur:-"/"}) )
46 complete -F _fincore_module fincore