Skip to content

Commit

Permalink
fix(ip): Complete link change as well as set
Browse files Browse the repository at this point in the history
This was missing from the help and man page, but worked for a while.
  • Loading branch information
yedayak authored and scop committed May 1, 2024
1 parent 606f650 commit 956bd5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions/ip
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ _comp_cmd_ip()
_comp_compgen -a -- -W 'type'
fi
;;
set)
set | change)
if ((cword - subcword == 1)); then
_comp_compgen_available_interfaces
else
Expand Down Expand Up @@ -180,7 +180,7 @@ _comp_cmd_ip()
;;
*)
((cword == subcword)) &&
_comp_compgen -- -W 'help add delete set show property afstats'
_comp_compgen -- -W 'help add change delete set show property afstats'
;;
esac
;;
Expand Down

0 comments on commit 956bd5d

Please sign in to comment.