about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-01 17:13:32 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-01 17:13:32 +0000
commita2f158f531cc46217f3a1f1acd7703369279ca59 (patch)
tree24c2f81656f52994b0e0750b676b58d63f23afd9
parent2e3363ef7d1492bf8644b7cad89e500c3fc3251b (diff)
downloadzsh-a2f158f531cc46217f3a1f1acd7703369279ca59.tar.gz
zsh-a2f158f531cc46217f3a1f1acd7703369279ca59.tar.xz
zsh-a2f158f531cc46217f3a1f1acd7703369279ca59.zip
Jörg Sommer: 25572: completer module parameters
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_modutils3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 05a2e57e4..c1c8d7e61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-01  Peter Stephenson  <pws@csr.com>
+
+	* Jörg Sommer: 25572: Completion/Linux/Command/_modutils:
+	complete module parameters.
+
 2008-08-31  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 25571: Src/lex.c, Src/parse.c, Test/.distfiles,
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index cc7034f8c..732290363 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -85,7 +85,8 @@ case "$state" in
     if compset -P '*='; then
       _message -e value 'parameter value'
     else
-      _message -e parameter 'module parameter'
+      _values 'module parameter' \
+        ${(f)^"$(_call_program module_parameter modinfo -F parm "$words[2]" 2>/dev/null)"//:/\=[}\]
     fi
   ;;
 esac