Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 1/1] add completion for 'ip -human' and 'ip -iec'



ip command has new options '-human' for human readable values in
statistics and '-iec' for human readable values in IEC units.

Signed-off-by: Christian Hesse <mail@xxxxxxxx>
---
 Completion/Unix/Command/_ip | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Completion/Unix/Command/_ip b/Completion/Unix/Command/_ip
index bfa7d99..1e39491 100644
--- a/Completion/Unix/Command/_ip
+++ b/Completion/Unix/Command/_ip
@@ -531,6 +531,8 @@ args=(
 )
 
 _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' \
   '-f*amily:select protocol family:$subcmd_family' \
   '-4:IPv4' \
-- 
2.4.0



Messages sorted by: Reverse Date, Date, Thread, Author