PageRenderTime 120ms CodeModel.GetById 118ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1# FreeBSD kernel module commands
 2
 3
 4comp_include _get_cword
 5
 6
 7_kldunload()
 8{
 9    local cur
10    cur=`_get_cword`
11    COMPREPLY=( $(kldstat | sed -ne "s/^.*[ \t]\+\($cur[a-z_]\+\).ko$/\1/p") )
12} # _kldunload()