/bash_completion.d/cardctl
http://github.com/brinkman83/bashrc · #! · 24 lines · 20 code · 4 blank · 0 comment · 0 complexity · 684dbf672d2b63443a4a3f708b943072 MD5 · raw file
- # Linux cardctl(8) completion
- have cardctl &&
- _cardctl()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- if [ $COMP_CWORD -eq 1 ]; then
- COMPREPLY=( $( compgen -W 'status config ident suspend \
- resume reset eject insert scheme' -- "$cur" ) )
- fi
- } &&
- complete -F _cardctl cardctl
- # Local variables:
- # mode: shell-script
- # sh-basic-offset: 4
- # sh-indent-comment: t
- # indent-tabs-mode: nil
- # End:
- # ex: ts=4 sw=4 et filetype=sh