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

[linux completion] _modutils patch



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

--- 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
 


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