From 47623f4d35a9fb494de408965b1fb1b5321edd07 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 17 Jun 2010 20:17:59 +0200 Subject: _modprobe: Use zsh expansion instead of find --- etc/completions/_modprobe | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'etc/completions/_modprobe') 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} -- cgit v1.2.3