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

  1. # bash completion for ntpdate
  2.  
  3. have ntpdate &&
  4. _ntpdate()
  5. {
  6.     local cur prev
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur prev
  10.  
  11.     case $prev in
  12.         -k)
  13.             _filedir
  14.             return 0
  15.             ;;
  16.         -U)
  17.             COMPREPLY=( $( compgen -u "$cur"  ) )
  18.             return 0
  19.             ;;
  20.     esac
  21.  
  22.     if [[ "$cur" == -* ]]; then
  23.         COMPREPLY=( $( compgen -W '-4 -6 -b -B -d -Q -q -s -u -v -a\
  24.             -e -k -p -o -r -t' -- "$cur" ) )
  25.     else
  26.         _known_hosts_real "$cur"
  27.     fi
  28. } &&
  29. complete -F _ntpdate ntpdate
  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.