From: Tomasz Pala <gotar@polanet.pl>
To: zsh-users@zsh.org
Subject: _modutils and _ip completion fixes
Date: Wed, 16 Aug 2017 20:54:20 +0200 [thread overview]
Message-ID: <20170816185420.GA25289@polanet.pl> (raw)
[-- 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[@]" "#")
reply other threads:[~2017-08-16 19:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170816185420.GA25289@polanet.pl \
--to=gotar@polanet.pl \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).