* PATCH: Fix slow modprobe completion
@ 2009-07-13 23:17 Andy Spencer
0 siblings, 0 replies; only message in thread
From: Andy Spencer @ 2009-07-13 23:17 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
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 #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-13 23:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-13 23:17 PATCH: Fix slow modprobe completion Andy Spencer
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).