File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated. Upstream completion is available in
4
4
# NetworkManager >= 0.9.8.0, use that instead.
5
5
6
- _comp_cmd_nmcli__list ()
7
- {
8
- _comp_compgen -- -W ' $1'
9
- }
10
-
11
6
_comp_cmd_nmcli__con_id ()
12
7
{
13
8
local IFS=$' \n '
@@ -49,7 +44,7 @@ _comp_cmd_nmcli()
49
44
return
50
45
;;
51
46
-e | --escape)
52
- _comp_cmd_nmcli__list " yes no"
47
+ _comp_compgen -- -W " yes no"
53
48
return
54
49
;;
55
50
id)
@@ -69,7 +64,7 @@ _comp_cmd_nmcli()
69
64
return
70
65
;;
71
66
wep-key-type)
72
- _comp_cmd_nmcli__list " key phrase"
67
+ _comp_compgen -- -W " key phrase"
73
68
return
74
69
;;
75
70
esac
@@ -89,23 +84,23 @@ _comp_cmd_nmcli()
89
84
nm)
90
85
case $command in
91
86
enable)
92
- _comp_cmd_nmcli__list " true false"
87
+ _comp_compgen -- -W " true false"
93
88
return
94
89
;;
95
90
sleep)
96
- _comp_cmd_nmcli__list " true false"
91
+ _comp_compgen -- -W " true false"
97
92
return
98
93
;;
99
94
wifi)
100
- _comp_cmd_nmcli__list " on off"
95
+ _comp_compgen -- -W " on off"
101
96
return
102
97
;;
103
98
wwan)
104
- _comp_cmd_nmcli__list " on off"
99
+ _comp_compgen -- -W " on off"
105
100
return
106
101
;;
107
102
wimax)
108
- _comp_cmd_nmcli__list " on off"
103
+ _comp_compgen -- -W " on off"
109
104
return
110
105
;;
111
106
esac
You can’t perform that action at this time.
0 commit comments