* [linux completion] _modutils patch
@ 2011-06-15 14:31 Dos Reis Michel
0 siblings, 0 replies; only message in thread
From: Dos Reis Michel @ 2011-06-15 14:31 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 328 bytes --]
Hi,
Last zsh-dev version (4.3.12) broke modprobe & modinfo completion when
Linux kernel modules are compressed with gzip (*.ko.gz).
I have made a stupid patch which solves 2 problems in this case, zsh
find the modules and remove all the suffixes in the completion menu.
PS : sorry for my poor English.
Bye.
Michel Dos Reis
[-- Attachment #2: _modutils.patch --]
[-- Type: text/plain, Size: 504 bytes --]
--- Completion/Linux/Command/_modutils 2011-06-15 15:31:50.511020521 +0200
+++ Completion/Linux/Command/_modutils_new 2011-06-15 15:56:03.360764426 +0200
@@ -107,7 +107,7 @@
! _retrieve_cache modules-$kver;
then
# 2011-01-02 gi1242: Do we need .o files? Or is .ko enough?
- modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko)(.:t:r) )
+ modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz)(.:t:r:r) )
_store_cache modules-$kver modules
fi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-15 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15 14:31 [linux completion] _modutils patch Dos Reis Michel
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).