summaryrefslogtreecommitdiff
path: root/etc/completions
diff options
context:
space:
mode:
Diffstat (limited to 'etc/completions')
-rw-r--r--etc/completions/_modprobe5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/completions/_modprobe b/etc/completions/_modprobe
index aacbf9b..cc6bdfe 100644
--- a/etc/completions/_modprobe
+++ b/etc/completions/_modprobe
@@ -64,10 +64,7 @@ for arg in ${(k)argument_pairs}; {
function _modprobe_module {
typeset expl
_wanted module expl module \
- compadd $(
- find /lib/modules/$(uname -r) -type f -name '*.ko' -printf '%f\n' | \
- sed 's/\.ko$//'
- )
+ compadd ${$(echo /lib/modules/$(uname -r)/**/*.ko):t:r}
}
_arguments -s ${arguments}