summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorRyan Rotter <rrotter@me.com>2026-03-11 15:36:04 -0400
committerOliver Kiddle <opk@zsh.org>2026-04-30 21:33:57 +0200
commit40625a597581e8d3fd3dc8dc71a97d6e15c57242 (patch)
tree424d4ec5e5098ff9b230563ea0e9c5550703b804 /Completion/Unix/Command
parent54383: Fix WATCH/watch tying (diff)
downloadzsh-40625a597581e8d3fd3dc8dc71a97d6e15c57242.tar
zsh-40625a597581e8d3fd3dc8dc71a97d6e15c57242.tar.gz
zsh-40625a597581e8d3fd3dc8dc71a97d6e15c57242.tar.bz2
zsh-40625a597581e8d3fd3dc8dc71a97d6e15c57242.tar.lz
zsh-40625a597581e8d3fd3dc8dc71a97d6e15c57242.tar.xz
zsh-40625a597581e8d3fd3dc8dc71a97d6e15c57242.tar.zst
zsh-40625a597581e8d3fd3dc8dc71a97d6e15c57242.zip
54218: _ip: add missing options
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_ip3
1 files changed, 3 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_ip b/Completion/Unix/Command/_ip
index 9a7cbd821..0dde5e5f0 100644
--- a/Completion/Unix/Command/_ip
+++ b/Completion/Unix/Command/_ip
@@ -225,6 +225,7 @@ local -a addr_show_cmds
# TODO: broadcast can take + or =
_regex_words addr-show-commands "addr show commands" \
'dev:specify device:$subcmd_dev' \
+ 'up:limit display to running devices' \
's*cope:specify scope for address:$subcmd_scope' \
't*o:limit to given IP address/prefix:$subcmd_ipaddr' \
'la*bel:list tags matching glob patter:$subcmd_string' \
@@ -553,6 +554,8 @@ _regex_words options "ip options" \
'-M:family MPLS' \
'-0:link protocol, no networking' \
'-o*neline:output one record per line' \
+ '-j*son:output results in JSON' \
+ '-p*retty:pretty print JSON' \
'-t*imestamp:display current time when using monitor option' \
'-ts*hort:display current time in shorter format when using monitor option' \
'-r*esolve:use system resolver for DNS names'