diff --git a/bash_completion b/bash_completion index 65b3f81e..73d418a6 100644 --- a/bash_completion +++ b/bash_completion @@ -1,7 +1,7 @@ # bash_completion - programmable completion functions for bash 3.x # (backwards compatible with bash 2.05b) # -# $Id: bash_completion,v 1.858 2006/02/25 11:55:56 ianmacd Exp $ +# $Id: bash_completion,v 1.859 2006/02/25 13:02:25 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -8627,6 +8627,22 @@ _vncviewer() } && complete -F _vncviewer vncviewer +# sysctl(8) completion +# +have sysctl && +_sysctl() +{ + local cur + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + + COMPREPLY=( $( compgen -W "$(sysctl -N -a 2>/dev/null)" -- $cur ) ) + + return 0 +} && +complete -F _sysctl sysctl + _filedir_xspec() { local IFS cur xspec