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 0bb1c5e commit 12fbdb1Copy full SHA for 12fbdb1
completions/ip
@@ -256,7 +256,22 @@ _comp_cmd_ip()
256
fi
257
;;
258
get)
259
- # TODO
+ case $prev in
260
+ as | dport | from | sport | ipproto | vrf | to | tos | mark)
261
+ : # TODO: Can we complete ipproto, tos, or vrf?
262
+ ;;
263
+ uid)
264
+ _comp_compgen_uids
265
266
+ oif | iif | dev)
267
+ _comp_compgen_available_interfaces -a
268
269
+ *)
270
+ # TODO: 'iif' only works if also 'from' is specified
271
+ _comp_compgen -- -W 'as connected dport from fibmatch
272
+ iif ipproto mark notify oif sport to tos uid vrf'
273
274
+ esac
275
276
a | add | d | del | change | append | r | replace)
277
if [[ $prev == via ]]; then
0 commit comments