Split cardctl completion to contrib/cardctl

This commit is contained in:
David Paleino 2009-06-05 21:42:59 +02:00
parent b5029b732e
commit 8c88c2283f
4 changed files with 19 additions and 18 deletions

View File

@ -31,6 +31,7 @@ bash-completion (1.x)
of grep-status if available)
* Split gcc completion to contrib/gcc
* Split dselect completion to contrib/dselect
* Split cardctl completion to contrib/cardctl
[ Ville Skyttä ]
* Split yum and yum-arch completion into contrib/yum.

View File

@ -16,6 +16,7 @@ bashcomp_DATA = contrib/ant \
contrib/bluez-utils \
contrib/brctl \
contrib/bzip2 \
contrib/cardctl \
contrib/chkconfig \
contrib/chsh \
contrib/cfengine \

View File

@ -1443,24 +1443,6 @@ for i in env netstat seq uname units wget; do
done
unset i
# 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
# PINE address-book completion
#
have pine &&

17
contrib/cardctl Normal file
View File

@ -0,0 +1,17 @@
# 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