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 / cardctl < prev    next >
Encoding:
Text File  |  2010-11-16  |  500 b   |  25 lines

  1. # Linux cardctl(8) completion
  2.  
  3. have cardctl || have pccardctl &&
  4. _cardctl()
  5. {
  6.     local cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  10.  
  11.     if [ $COMP_CWORD -eq 1 ]; then
  12.         COMPREPLY=( $( compgen -W 'status config ident suspend \
  13.             resume reset eject insert scheme' -- "$cur" ) )
  14.     fi
  15. } &&
  16. complete -F _cardctl cardctl pccardctl
  17.  
  18. # Local variables:
  19. # mode: shell-script
  20. # sh-basic-offset: 4
  21. # sh-indent-comment: t
  22. # indent-tabs-mode: nil
  23. # End:
  24. # ex: ts=4 sw=4 et filetype=sh
  25.