home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / cups < prev    next >
Encoding:
Text File  |  2010-11-16  |  385 b   |  22 lines

  1. # bash completion for cups
  2.  
  3. have cancel &&
  4. _cancel()
  5. {
  6.     local cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  10.  
  11.     COMPREPLY=( $( compgen -W "$( lpstat | cut -d' ' -f1 )" -- "$cur" ) )
  12. } &&
  13. complete -F _cancel -o filenames cancel
  14.  
  15. # Local variables:
  16. # mode: shell-script
  17. # sh-basic-offset: 4
  18. # sh-indent-comment: t
  19. # indent-tabs-mode: nil
  20. # End:
  21. # ex: ts=4 sw=4 et filetype=sh
  22.