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 / sysctl < prev    next >
Encoding:
Text File  |  2010-11-16  |  388 b   |  24 lines

  1. # bash completion for sysctl
  2.  
  3. have sysctl &&
  4. _sysctl()
  5. {
  6.     local cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  10.  
  11.     COMPREPLY=( $( compgen -W "$(sysctl -N -a 2>/dev/null)" -- "$cur" ) )
  12.  
  13.     return 0
  14. } &&
  15. complete -F _sysctl sysctl
  16.  
  17. # Local variables:
  18. # mode: shell-script
  19. # sh-basic-offset: 4
  20. # sh-indent-comment: t
  21. # indent-tabs-mode: nil
  22. # End:
  23. # ex: ts=4 sw=4 et filetype=sh
  24.