blob: 180af3605412f75e6b4d77bbda302a2bde5961e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# FreeBSD kldunload completion -*- shell-script -*-
[[ $OSTYPE == *freebsd* ]] || return 1
_comp_cmd_kldunload()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
_comp_compgen_split -X '!*.ko' -- "$(kldstat)" &&
COMPREPLY=("${COMPREPLY[@]%.ko}")
} &&
complete -F _comp_cmd_kldunload kldunload
# ex: filetype=sh
|