Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Fix slow modprobe completion
- X-seq: zsh-workers 27148
- From: Andy Spencer <andy753421@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: Fix slow modprobe completion
- Date: Mon, 13 Jul 2009 23:17:19 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=gkiewlzqS0iXptzk8XjPa+cq8GDS8U0M0zJXuubGATw=; b=SlB+iuKzQGCnFlh/xmnQQz6lOmHuQoH3puwVPRyM4xag40dA9RCxORjYtviHt2PyvP Fq5bqHGn7Y8czTRbytEvGlCVG0f0zSQ6nFh27drcOvJFNjn/04zpx3QH86gEwgyASvYm 5X657JsBk3zMIrZ4UNfOt3UIEU8rjwKi9TB4I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=geSxbWCIDCCIKRb4/XFmwm/+oLngB1IVuAdETQPf1t1gmjkqaLPMbhbVsUeqfR3I0x JBQzkIZK83t9Z8xdUOwINvFcKnustZHIkkCBJ7RlBIMfYH2Xjp3v8LuG+emYAxF+867K EMqHRqZ+WQmWm5+bbzA4VMNsOeug3+Wi14Uxg=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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