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 / dselect < prev    next >
Encoding:
Text File  |  2010-11-16  |  824 b   |  42 lines

  1. # Debian Linux dselect(8) completion.
  2.  
  3. have dselect &&
  4. _dselect()
  5. {
  6.     local cur prev
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur prev
  10.  
  11.     case $prev in
  12.         --admindir)
  13.             _filedir -d
  14.             return 0
  15.             ;;
  16.         -D|-debug)
  17.             _filedir
  18.             return 0
  19.             ;;
  20.     esac
  21.  
  22.     if [[ "$cur" == -* ]]; then
  23.         COMPREPLY=( $( compgen -W '--admindir --help --version --licence \
  24.             --license --expert --debug' -- "$cur" ) )
  25.     else
  26.         COMPREPLY=( $( compgen -W 'access update select install config \
  27.             remove quit' -- "$cur" ) )
  28.     fi
  29.  
  30.  
  31.     return 0
  32. } &&
  33. complete -F _dselect -o filenames dselect
  34.  
  35. # Local variables:
  36. # mode: shell-script
  37. # sh-basic-offset: 4
  38. # sh-indent-comment: t
  39. # indent-tabs-mode: nil
  40. # End:
  41. # ex: ts=4 sw=4 et filetype=sh
  42.