From 0bc58b66a4850cdb8458a86c3d9a2fc81de82aa3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:14:42 +0200 Subject: Adding upstream version 1:2.11. Signed-off-by: Daniel Baumann --- completions/kldunload | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 completions/kldunload (limited to 'completions/kldunload') diff --git a/completions/kldunload b/completions/kldunload new file mode 100644 index 0000000..2e12282 --- /dev/null +++ b/completions/kldunload @@ -0,0 +1,15 @@ +# FreeBSD kldunload completion -*- shell-script -*- + +[[ $OSTYPE == *freebsd* ]] || return 1 + +_kldunload() +{ + local cur prev words cword + _init_completion || return + + COMPREPLY=($(compgen -W '$(kldstat)' -X 'kernel' -X '!*.ko' -- "$cur")) + COMPREPLY=(${COMPREPLY[@]%.ko}) +} && + complete -F _kldunload kldunload + +# ex: filetype=sh -- cgit v1.2.3