mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-03-12 04:36:22 -07:00
22 lines
473 B
Bash
22 lines
473 B
Bash
# FreeBSD kldload completion -*- shell-script -*-
|
|
|
|
[[ $OSTYPE == *freebsd* ]] || return 1
|
|
|
|
_kldload()
|
|
{
|
|
local cur prev words cword
|
|
_init_completion || return
|
|
|
|
local moddir=/modules/
|
|
[[ -d $moddir ]] || moddir=/boot/kernel/
|
|
|
|
compopt -o filenames
|
|
COMPREPLY=($(compgen -f "$moddir$cur"))
|
|
COMPREPLY=(${COMPREPLY[@]#$moddir})
|
|
COMPREPLY=(${COMPREPLY[@]%.ko})
|
|
|
|
} &&
|
|
complete -F _kldload kldload
|
|
|
|
# ex: filetype=sh
|