10 cur=${COMP_WORDS[COMP_CWORD]}
11 prev=${COMP_WORDS[COMP_CWORD-1]}
13 if [ $COMP_CWORD -eq 1 ]; then
14 # first parameter on line
17 COMPREPLY=( $( compgen -W '--help --version --erase \
21 COMPREPLY=( $( compgen -W '-F -N -O -P -Q -V -e -i -l -m -n -q -r -s -t -u -v' \
29 case "${COMP_WORDS[1]}" in
31 if [[ "$cur" == -* ]]; then
32 COMPREPLY=( $( compgen -W '--nodeps --nofollow --test' -- $cur ) )
34 _rpm_installed_packages
41 complete -F _poldek $filenames poldek