# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*- # ex: ts=8 sw=8 noet filetype=sh # # bash completion for sysctl have sysctl && _sysctl() { local cur COMPREPLY=() cur=`_get_cword` COMPREPLY=( $( compgen -W "$(sysctl -N -a 2>/dev/null)" -- $cur ) ) return 0 } && complete -F _sysctl sysctl