1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00

Jörg Sommer: 25572: completer module parameters

This commit is contained in:
Peter Stephenson 2008-09-01 17:13:32 +00:00
parent 2e3363ef7d
commit a2f158f531
2 changed files with 7 additions and 1 deletions

View file

@ -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,

View file

@ -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