5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 PIDS=$(cd /proc && echo [0-9]*)
10 COMPREPLY=( $(compgen -W "$PIDS" -- $cur) )
14 local prefix realcur OUTPUT_ALL OUTPUT
16 prefix="${cur%$realcur}"
17 OUTPUT_ALL="DESCRIPTION RESOURCE SOFT HARD UNITS"
18 for WORD in $OUTPUT_ALL; do
19 if ! [[ $prefix == *"$WORD"* ]]; then
20 OUTPUT="$WORD ${OUTPUT:-""}"
24 COMPREPLY=( $(compgen -P "$prefix" -W "$OUTPUT" -S ',' -- $realcur) )
27 '-h'|'--help'|'-V'|'--version')
34 # FIXME: is there anything what could be printed
61 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
65 compopt -o bashdefault
66 COMPREPLY=( $(compgen -c -- $cur) )
69 complete -F _prlimit_module prlimit