summaryrefslogtreecommitdiff
path: root/completions/rmmod
diff options
context:
space:
mode:
Diffstat (limited to 'completions/rmmod')
-rw-r--r--completions/rmmod20
1 files changed, 20 insertions, 0 deletions
diff --git a/completions/rmmod b/completions/rmmod
new file mode 100644
index 00000000..50dd982c
--- /dev/null
+++ b/completions/rmmod
@@ -0,0 +1,20 @@
+# Linux rmmod(8) completion. This completes on a list of all currently
+# installed kernel modules.
+
+_rmmod()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ _installed_modules "$cur"
+ return 0
+} &&
+complete -F _rmmod rmmod
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh