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 / apache2ctl < prev    next >
Encoding:
Text File  |  2010-11-16  |  476 b   |  25 lines

  1. # apache2ctl(1) completion
  2.  
  3. have apache2ctl && {
  4. _apache2ctl() {
  5.     local APWORDS cur
  6.  
  7.     COMPREPLY=()
  8.     _get_comp_words_by_ref cur
  9.  
  10.     APWORDS=$(apache2ctl 2>&1 >/dev/null | awk 'NR<2 { print $3; exit }' | \
  11.         tr "|" " ")
  12.  
  13.     COMPREPLY=( $( compgen -W "$APWORDS" -- "$cur" ) )
  14. }
  15. complete -F _apache2ctl apache2ctl
  16. }
  17.  
  18. # Local variables:
  19. # mode: shell-script
  20. # sh-basic-offset: 4
  21. # sh-indent-comment: t
  22. # indent-tabs-mode: nil
  23. # End:
  24. # ex: ts=4 sw=4 et filetype=sh
  25.