We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a7cd8 commit abce117Copy full SHA for abce117
completions/brctl
@@ -1,4 +1,9 @@
1
# bash completion for brctl -*- shell-script -*-
2
+_comp_xfunc_brctl_interfaces()
3
+{
4
+ _comp_compgen_split -- "$(${1:-brctl} show ${2:+"$2"} 2>/dev/null | _comp_awk \
5
+ '(NR == 1) { next }; (/^\t/) { print $1; next }; { print $4 }')"
6
+}
7
8
_comp_cmd_brctl()
9
{
@@ -25,9 +30,12 @@ _comp_cmd_brctl()
25
30
;;
26
31
3)
27
32
case $command in
28
- addif | delif)
33
+ addif)
29
34
_comp_compgen_available_interfaces
35
36
+ delif)
37
+ _comp_xfunc_brctl_interfaces "$1" "$prev"
38
+ ;;
39
stp)
40
_comp_compgen -- -W 'on off'
41
0 commit comments