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 / pm-utils < prev    next >
Encoding:
Text File  |  2010-11-16  |  879 b   |  38 lines

  1. # bash completion for pm-utils
  2.  
  3. have pm-is-supported &&
  4. _pm_is_supported()
  5. {
  6.     local cur
  7.     _get_comp_words_by_ref cur
  8.     COMPREPLY=( $( compgen -W '--help --suspend --hibernate --suspend-hybrid' \
  9.         -- "$cur" ) )
  10. } &&
  11. complete -F _pm_is_supported pm-is-supported
  12.  
  13. have pm-hibernate || have pm-suspend || have pm-suspend-hybrid &&
  14. _pm_action()
  15. {
  16.     local cur
  17.     _get_comp_words_by_ref cur
  18.     COMPREPLY=( $( compgen -W "--help $( _parse_help "$1" )" -- "$cur" ) )
  19. } &&
  20. complete -F _pm_action pm-hibernate pm-suspend pm-suspend-hybrid
  21.  
  22. have pm-powersave &&
  23. _pm_powersave()
  24. {
  25.     local cur
  26.     _get_comp_words_by_ref cur
  27.     COMPREPLY=( $( compgen -W "true false" -- "$cur" ) )
  28. } &&
  29. complete -F _pm_powersave pm-powersave
  30.  
  31. # Local variables:
  32. # mode: shell-script
  33. # sh-basic-offset: 4
  34. # sh-indent-comment: t
  35. # indent-tabs-mode: nil
  36. # End:
  37. # ex: ts=4 sw=4 et filetype=sh
  38.