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 93e797bCopy full SHA for 93e797b
completions/brctl
@@ -1,5 +1,11 @@
1
# bash completion for brctl -*- shell-script -*-
2
3
+_comp_cmd_brctl__interfaces()
4
+{
5
+ _comp_compgen_split -- "$(${1:-brctl} show ${2:+"$2"} 2>/dev/null | _comp_awk \
6
+ '(NR == 1) { next }; (/^\t/) { print $1; next }; { print $4 }')"
7
+}
8
+
9
_comp_cmd_brctl()
10
{
11
local cur prev words cword comp_args
@@ -25,9 +31,12 @@ _comp_cmd_brctl()
25
31
;;
26
32
3)
27
33
case $command in
28
- addif | delif)
34
+ addif)
29
35
_comp_compgen_available_interfaces
30
36
37
+ delif)
38
+ _comp_cmd_brctl__interfaces "$1" "$prev"
39
+ ;;
40
stp)
41
_comp_compgen -- -W 'on off'
42
0 commit comments