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 / dhclient < prev    next >
Encoding:
Text File  |  2010-11-16  |  704 b   |  37 lines

  1. # bash completion for dhclient
  2.  
  3. have dhclient && _dhclient()
  4. {
  5.     local cur prev
  6.  
  7.     COMPREPLY=()
  8.     _get_comp_words_by_ref cur prev
  9.  
  10.     case $prev in
  11.         -cf|-lf|-pf|-sf)
  12.             _filedir
  13.             return 0
  14.             ;;
  15.         -s)
  16.             _known_hosts_real "$cur"
  17.             return 0
  18.             ;;
  19.     esac
  20.  
  21.     if [[ "$cur" == -* ]]; then
  22.         COMPREPLY=( $( compgen -W '-p -d -q -1 -r -lf -pf \
  23.             -cf -sf -s -g -n -nw -w' -- "$cur" ) )
  24.     else
  25.         _available_interfaces
  26.     fi
  27. } &&
  28. complete -F _dhclient dhclient
  29.  
  30. # Local variables:
  31. # mode: shell-script
  32. # sh-basic-offset: 4
  33. # sh-indent-comment: t
  34. # indent-tabs-mode: nil
  35. # End:
  36. # ex: ts=4 sw=4 et filetype=sh
  37.