PageRenderTime 147ms CodeModel.GetById 145ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion.d/cardctl

http://github.com/brinkman83/bashrc
#! | 24 lines | 20 code | 4 blank | 0 comment | 0 complexity | 684dbf672d2b63443a4a3f708b943072 MD5 | raw file
 1# Linux cardctl(8) completion
 2
 3have cardctl &&
 4_cardctl()
 5{
 6    local cur
 7
 8    COMPREPLY=()
 9    cur=`_get_cword`
10
11    if [ $COMP_CWORD -eq 1 ]; then
12        COMPREPLY=( $( compgen -W 'status config ident suspend \
13            resume reset eject insert scheme' -- "$cur" ) )
14    fi
15} &&
16complete -F _cardctl cardctl
17
18# Local variables:
19# mode: shell-script
20# sh-basic-offset: 4
21# sh-indent-comment: t
22# indent-tabs-mode: nil
23# End:
24# ex: ts=4 sw=4 et filetype=sh