summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_ip15
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a1602ff75..37e07f815 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2017-08-16 Oliver Kiddle <opk@zsh.org>
+ * Tomasz Pala: users/22834: Completion/Unix/Command/_ip:
+ allow completion after -c and a few other new options
+
* 41556: Completion/Solaris/Command/_snoop
Completion/Unix/Command/_ngrep, Completion/Unix/Command/_tcpdump,
Completion/Unix/Type/_bpf_filters: complete BPF (libpcap) filters
diff --git a/Completion/Unix/Command/_ip b/Completion/Unix/Command/_ip
index 6e1cc3b78..74101c646 100644
--- a/Completion/Unix/Command/_ip
+++ b/Completion/Unix/Command/_ip
@@ -530,15 +530,30 @@ args=(
/$'[^\0]#\0'/
)
+# TODO:
+# -b*atch <FILENAME>
+# -force (for batch mode)
+# -l*oops <COUNT>
+# -n*etns <NETNS>
+# -rc, -rcvbuf<SIZE>
_regex_words options "ip options" \
'-h*uman:output statistics with human readable values' \
'-i*ec:print human readable rates in IEC units (ie. 1K = 1024)' \
'-s*tatistics:output statistics' \
+ '-d*etails:output more detailed information' \
+ '-c*olor:color output' \
+ '-a*ll:executes specified command over all objects' \
'-f*amily:select protocol family:$subcmd_family' \
'-4:IPv4' \
'-6:IPv6' \
+ '-B:family bridge' \
+ '-D:family DECnet' \
+ '-I:family IPX' \
+ '-M:family MPLS' \
'-0:link protocol, no networking' \
'-o*neline:output one record per line' \
+ '-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'
args+=("$reply[@]" "#")