mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
23751: complete module files too
This commit is contained in:
parent
38a2d37d0e
commit
649d87c8cb
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-08-12 Andrey Borzenkov <bor@zsh.org>
|
||||
|
||||
* 23751: Completion/Linux/Command/_modutils: support for
|
||||
completing module files directly
|
||||
|
||||
2007-08-09 Clint Adams <clint@zsh.org>
|
||||
|
||||
* Nikolai Weibull: 23749: Completion/Unix/Command/_cdrdao:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue