diff options
Diffstat (limited to 'contrib/brctl')
-rw-r--r-- | contrib/brctl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/brctl b/contrib/brctl index a612034c..1be86af1 100644 --- a/contrib/brctl +++ b/contrib/brctl @@ -6,7 +6,7 @@ _brctl() local cur command COMPREPLY=() - cur=`_get_cword` + _get_comp_words_by_ref cur command=${COMP_WORDS[1]} case $COMP_CWORD in @@ -21,13 +21,13 @@ _brctl() show) ;; *) - COMPREPLY=( $( compgen -W "$(brctl show | sed '1d' | \ - awk '{print $1}' )" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "$(brctl show | \ + awk 'NR>1 {print $1}' )" -- "$cur" ) ) esac ;; 3) case $command in - @(add|del)if) + addif|delif) _configured_interfaces ;; stp) @@ -37,7 +37,7 @@ _brctl() ;; esac } && -complete -F _brctl $default brctl +complete -F _brctl -o default brctl # Local variables: # mode: shell-script |