summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-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$//'
+)