PageRenderTime 132ms CodeModel.GetById 111ms app.highlight 0ms RepoModel.GetById 20ms app.codeStats 0ms

/bash_completion_lib/complete -o filenames/removepkg

http://github.com/brinkman83/bashrc
#! | 15 lines | 9 code | 6 blank | 0 comment | 0 complexity | 881bee78e2b0b3df39eb446f256f5574 MD5 | raw file
 1# Slackware Linux removepkg completion
 2
 3
 4comp_include _get_cword
 5
 6
 7_removepkg()
 8{
 9    local packages cur
10
11    COMPREPLY=()
12    cur=`_get_cword`
13
14    COMPREPLY=( $( (cd /var/log/packages && compgen -f -- "$cur") ) )
15} # _removepkg()