summaryrefslogtreecommitdiff
path: root/etc/completions/_modprobe
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-17 20:17:59 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-17 20:17:59 +0200
commit47623f4d35a9fb494de408965b1fb1b5321edd07 (patch)
treedbfbe01b27b7b437242b5b50f42fcb4233e62b24 /etc/completions/_modprobe
parentef1e6c5bb4e52154edd611e1d4c70d1836fc1ee4 (diff)
_modprobe: Use zsh expansion instead of find
Diffstat (limited to 'etc/completions/_modprobe')
-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}