diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-17 20:17:59 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-17 20:17:59 +0200 |
commit | 47623f4d35a9fb494de408965b1fb1b5321edd07 (patch) | |
tree | dbfbe01b27b7b437242b5b50f42fcb4233e62b24 /etc/completions/_modprobe | |
parent | ef1e6c5bb4e52154edd611e1d4c70d1836fc1ee4 (diff) |
_modprobe: Use zsh expansion instead of find
Diffstat (limited to 'etc/completions/_modprobe')
-rw-r--r-- | etc/completions/_modprobe | 5 |
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} |