diff options
Diffstat (limited to 'Completion/Linux')
-rw-r--r-- | Completion/Linux/Command/_modutils | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils index e3f33f8b5..2d3d71e43 100644 --- a/Completion/Linux/Command/_modutils +++ b/Completion/Linux/Command/_modutils @@ -67,8 +67,8 @@ case "$state" in ;; all_modules) - modules=( ${${(M)${(f)"$(_call_program modules ${(M)words[1]##*/}modprobe -c 2>/dev/null)"}:#path*}#*[=]} ) - _wanted modules expl module compadd ${^modules}/**/*.o(:t:r) && return + modules=( ${${${${(f)"$(_call_program modules ${(M)words[1]##*/}modprobe -l 2>/dev/null)"}:#}##*/}%.*} ) + _wanted modules expl module compadd -a modules && return ;; params) |