Skip to content

Commit b8ce75f

Browse files
authored
Merge pull request #1144 from yedayak/ip-addrlabel
fix(ip): make addrlabel flush, list not complete
2 parents 108cce4 + ea07616 commit b8ce75f

File tree

1 file changed

+5
-2
lines changed
  • completions

1 file changed

+5
-2
lines changed

completions/ip

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,16 @@ _comp_cmd_ip()
222222

223223
addrlabel)
224224
case $subcmd in
225-
list | add | del | flush)
225+
add | del)
226226
if [[ $prev == dev ]]; then
227227
_comp_compgen_available_interfaces
228+
elif [[ $prev == prefix || $prev == label ]]; then
229+
: # TODO - Is there a way to complete these?
228230
else
229-
: # TODO
231+
_comp_compgen -- -W 'dev prefix label'
230232
fi
231233
;;
234+
list | flush | help) ;;
232235
*)
233236
((cword == subcword)) &&
234237
_comp_compgen -- -W 'help list add del flush'

0 commit comments

Comments
 (0)