home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / bash / completion-contrib / gkrellm < prev    next >
Encoding:
Text File  |  2006-08-28  |  659 b   |  37 lines

  1. # gkrellm(1) completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
  2. #
  3. # $Id: gkrellm,v 1.2 2003/12/31 08:22:37 ianmacd Exp $
  4.  
  5. _gkrellm()
  6. {
  7.     local cur
  8.  
  9.     COMPREPLY=()
  10.     cur=${COMP_WORDS[COMP_CWORD]}
  11.     prev=${COMP_WORDS[COMP_CWORD-1]}
  12.  
  13.     case "$prev" in
  14.         -@(t|-theme))
  15.             _filedir -d
  16.             return 0
  17.             ;;
  18.         -@(p|-plugin))
  19.             _filedir 'so'
  20.             return 0
  21.             ;;
  22.         -@(s|-server))
  23.             _known_hosts
  24.             return 0
  25.             ;;
  26.     esac
  27.  
  28.     if [[ "$cur" == -* ]]; then
  29.         COMPREPLY=( $( compgen -W '--help -t --theme -s --server \
  30.             -g --geometry -wm -w --withdrawn -c --config -nc \
  31.             -f --force-host-config -demo -p --plugin -P \
  32.             --port' -- $cur ) )
  33.     fi
  34.  
  35. }
  36. complete -F _gkrellm gkrellm
  37.