Skip to content

Commit 05147f1

Browse files
committed
fix(ip): Complete only relevant addrlabel subcmds
1 parent efa663c commit 05147f1

File tree

1 file changed

+2
-1
lines changed
  • completions

1 file changed

+2
-1
lines changed

completions/ip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,14 @@ _comp_cmd_ip()
200200

201201
addrlabel)
202202
case $subcmd in
203-
list | add | del | flush)
203+
add | del)
204204
if [[ $prev == dev ]]; then
205205
_comp_compgen_available_interfaces
206206
else
207207
: # TODO
208208
fi
209209
;;
210+
list | flush | help) ;;
210211
*)
211212
((cword == subcword)) &&
212213
_comp_compgen -- -W 'help list add del flush'

0 commit comments

Comments
 (0)