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 / gkrellm < prev    next >
Encoding:
Text File  |  2010-11-16  |  1.3 KB  |  55 lines

  1. # gkrellm(1) completion
  2.  
  3. have gkrellm || have gkrellm2 &&
  4. _gkrellm()
  5. {
  6.     local cur prev
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur prev
  10.  
  11.     case $prev in
  12.         -t|--theme)
  13.             _filedir -d
  14.             return 0
  15.             ;;
  16.         -p|--plugin)
  17.             _filedir so
  18.             return 0
  19.             ;;
  20.         -s|--server)
  21.             _known_hosts_real "$cur"
  22.             return 0
  23.             ;;
  24.         -l|--logfile)
  25.             _filedir
  26.             return 0
  27.             ;;
  28.         -g|--geometry|-c|--config|-P|--port|-d|--debug-level)
  29.             # Argument required but no completions available
  30.             return 0
  31.             ;;
  32.         -h|--help|-v|--version)
  33.             # All other options are noop with these
  34.             return 0
  35.             ;;
  36.     esac
  37.  
  38.     if [[ "$cur" == -* ]]; then
  39.         COMPREPLY=( $( compgen -W '--theme --geometry --wm --m2 --nt \
  40.             --withdrawn --config --force-host-config --server --port --nc \
  41.             --config-clean --nolock --plugin --demo --logfile --version \
  42.             --debug-level --help' -- "$cur" ) )
  43.     fi
  44.  
  45. } &&
  46. complete -F _gkrellm -o filenames gkrellm gkrellm2
  47.  
  48. # Local variables:
  49. # mode: shell-script
  50. # sh-basic-offset: 4
  51. # sh-indent-comment: t
  52. # indent-tabs-mode: nil
  53. # End:
  54. # ex: ts=4 sw=4 et filetype=sh
  55.