diff options
Diffstat (limited to 'completions/brctl')
-rw-r--r-- | completions/brctl | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/completions/brctl b/completions/brctl index 1be86af1..441aa08f 100644 --- a/completions/brctl +++ b/completions/brctl @@ -1,15 +1,13 @@ -# bash completion for brctl +# bash completion for brctl -*- shell-script -*- -have brctl && _brctl() { - local cur command + local cur prev words cword + _init_completion || return - COMPREPLY=() - _get_comp_words_by_ref cur - command=${COMP_WORDS[1]} + local command=${words[1]} - case $COMP_CWORD in + case $cword in 1) COMPREPLY=( $( compgen -W "addbr delbr addif delif \ setageing setbridgeprio setfd sethello \ @@ -39,10 +37,4 @@ _brctl() } && complete -F _brctl -o default brctl -# Local variables: -# mode: shell-script -# sh-basic-offset: 4 -# sh-indent-comment: t -# indent-tabs-mode: nil -# End: # ex: ts=4 sw=4 et filetype=sh |