2009-06-06 00:48:22 +03:00
|
|
|
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
|
|
|
|
# ex: ts=8 sw=8 noet filetype=sh
|
|
|
|
|
2009-06-05 21:42:59 +02:00
|
|
|
# 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
|