* _modutils and _ip completion fixes
@ 2017-08-16 18:54 Tomasz Pala
0 siblings, 0 replies; only message in thread
From: Tomasz Pala @ 2017-08-16 18:54 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
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@pld-linux.org>
[-- Attachment #2: _ip.patch --]
[-- Type: text/plain, Size: 1124 bytes --]
--- 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[@]" "#")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-16 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 18:54 _modutils and _ip completion fixes Tomasz Pala
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).