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

_modutils and _ip completion fixes



Hello,

a little but irritating bug in Completion/Linux/Command/_modutils, around 110th line:

- s=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz|.ko.xz)(.:t:r:r) )
+ s=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz|ko.xz)(.:t:r:r) )


Additionally, attached patch for _ip completion, allowing one to use 'ip -c'
alias for ip command, as _regex_arguments stops processing on unknown argument
(with '?parse failed before current word?').

best regards,
-- 
Tomasz Pala <gotar@xxxxxxxxxxxxx>
--- a/Completion/Unix/Command/_ip	2017-08-16 20:32:45.641906366 +0200
+++ b/Completion/Unix/Command/_ip	2017-08-16 20:42:44.155759923 +0200
@@ -530,15 +530,30 @@
     /$'[^\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[@]" "#")
 


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