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

PATCH: Fix slow modprobe completion



Here's a small diff to make modprobe completion run quickly. I'm not sure when
it changed, but my modules directories have `build' simlinks as well as
`source' simlinks. This patch ignores both.


--- _modutils.orig	2009-07-10 22:03:46.000000000 +0000
+++ _modutils	2009-07-10 21:46:32.000000000 +0000
@@ -87,7 +87,7 @@
     else
       kver=$(uname -r)
     fi
-    modules=( $modules_dir/$kver/(*~source)/**/*(.:t:r) )
+    modules=( $modules_dir/$kver/(*~(source|build))/**/*(.:t:r) )
 
     if [[ $state = loadable_modules ]]; then
         modules=( ${modules:#(${(j:|:)~${=loaded_modules//_/-}})} )

Attachment: pgpKfUfTibIDx.pgp
Description: PGP signature



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