/bash_completion_lib/complete -o filenames/kldunload
http://github.com/brinkman83/bashrc · #! · 12 lines · 8 code · 4 blank · 0 comment · 0 complexity · 15f1854899327b89ea306dc330a3925c MD5 · raw file
- # FreeBSD kernel module commands
- comp_include _get_cword
- _kldunload()
- {
- local cur
- cur=`_get_cword`
- COMPREPLY=( $(kldstat | sed -ne "s/^.*[ \t]\+\($cur[a-z_]\+\).ko$/\1/p") )
- } # _kldunload()