about summary refs log tree commit diff
path: root/Completion/Linux/Command
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2007-08-12 09:04:52 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2007-08-12 09:04:52 +0000
commit649d87c8cb45fdcd1fe39560b04a1dd22c417bbb (patch)
treeb23c4e1d852cc62c566c28767d086b68ddd0a1ed /Completion/Linux/Command
parent38a2d37d0e0870ad5b73724d9ea7255f5e3605ee (diff)
downloadzsh-649d87c8cb45fdcd1fe39560b04a1dd22c417bbb.tar.gz
zsh-649d87c8cb45fdcd1fe39560b04a1dd22c417bbb.tar.xz
zsh-649d87c8cb45fdcd1fe39560b04a1dd22c417bbb.zip
23751: complete module files too
Diffstat (limited to 'Completion/Linux/Command')
-rw-r--r--Completion/Linux/Command/_modutils6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index d8c0e37e8..cc7034f8c 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -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)