zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] support module file too
@ 2007-08-12  9:00 Andrey Borzenkov
  0 siblings, 0 replies; only message in thread
From: Andrey Borzenkov @ 2007-08-12  9:00 UTC (permalink / raw)
  To: zsh-workers


[-- Attachment #1.1: Type: text/plain, Size: 100 bytes --]

modinfo/modprobe will check for local file in addition to centrally installed 
modules

-andrey

[-- Attachment #1.2: _modutils.diff --]
[-- Type: text/x-diff, Size: 809 bytes --]

Index: Completion/Linux/Command/_modutils
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_modutils,v
retrieving revision 1.5
diff -u -p -r1.5 _modutils
--- Completion/Linux/Command/_modutils	10 Dec 2004 16:05:51 -0000	1.5
+++ Completion/Linux/Command/_modutils	12 Aug 2007 08:36:23 -0000
@@ -74,7 +74,11 @@ case "$state" in
 
   all_modules)
     modules=( ${${${${(f)"$(_call_program modules ${(M)words[1]##*/}modprobe -l 2>/dev/null)"}:#}##*/}%%.*} )
-    _wanted modules expl module compadd -a modules && return
+    _tags files modules
+    while _tags; do
+      _requested files expl "module file"  _files && ret=0
+      _requested modules expl module compadd -a modules && ret=0
+    done
   ;;
 
   params)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-12  9:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-12  9:00 [PATCH] support module file too Andrey Borzenkov

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