/bash_completion_lib/complete -o filenames/removepkg

http://github.com/brinkman83/bashrc · #! · 15 lines · 9 code · 6 blank · 0 comment · 0 complexity · 881bee78e2b0b3df39eb446f256f5574 MD5 · raw file

  1. # Slackware Linux removepkg completion
  2. comp_include _get_cword
  3. _removepkg()
  4. {
  5. local packages cur
  6. COMPREPLY=()
  7. cur=`_get_cword`
  8. COMPREPLY=( $( (cd /var/log/packages && compgen -f -- "$cur") ) )
  9. } # _removepkg()