summaryrefslogtreecommitdiff
path: root/etc/completions/_modprobe
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-22 11:02:13 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-22 11:02:13 +0100
commitdaf9a10e2298ad1ac55e12ce0bd29220a4da8e06 (patch)
tree17ef7c4ecc3decc3d1a8f1f6e19f1e83d433fe98 /etc/completions/_modprobe
parent8a6d0b76391dbec475293833d09b398ddad84e9a (diff)
Added modprobe completion
Diffstat (limited to 'etc/completions/_modprobe')
-rw-r--r--etc/completions/_modprobe7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/completions/_modprobe b/etc/completions/_modprobe
new file mode 100644
index 0000000..50fc066
--- /dev/null
+++ b/etc/completions/_modprobe
@@ -0,0 +1,7 @@
+#compdef modprobe
+typeset expl
+_wanted module expl module \
+compadd $(
+ find /lib/modules/$(uname -r) -type f -name '*.ko' -printf '%f\n' |
+ sed 's/\.ko$//'
+)