19 lines
319 B
Plaintext
Raw Normal View History

2009-05-27 18:27:15 +02:00
# -*- 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