Split cardctl completion to contrib/cardctl
This commit is contained in:
parent
b5029b732e
commit
8c88c2283f
1
CHANGES
1
CHANGES
@ -31,6 +31,7 @@ bash-completion (1.x)
|
|||||||
of grep-status if available)
|
of grep-status if available)
|
||||||
* Split gcc completion to contrib/gcc
|
* Split gcc completion to contrib/gcc
|
||||||
* Split dselect completion to contrib/dselect
|
* Split dselect completion to contrib/dselect
|
||||||
|
* Split cardctl completion to contrib/cardctl
|
||||||
|
|
||||||
[ Ville Skyttä ]
|
[ Ville Skyttä ]
|
||||||
* Split yum and yum-arch completion into contrib/yum.
|
* Split yum and yum-arch completion into contrib/yum.
|
||||||
|
@ -16,6 +16,7 @@ bashcomp_DATA = contrib/ant \
|
|||||||
contrib/bluez-utils \
|
contrib/bluez-utils \
|
||||||
contrib/brctl \
|
contrib/brctl \
|
||||||
contrib/bzip2 \
|
contrib/bzip2 \
|
||||||
|
contrib/cardctl \
|
||||||
contrib/chkconfig \
|
contrib/chkconfig \
|
||||||
contrib/chsh \
|
contrib/chsh \
|
||||||
contrib/cfengine \
|
contrib/cfengine \
|
||||||
|
@ -1443,24 +1443,6 @@ for i in env netstat seq uname units wget; do
|
|||||||
done
|
done
|
||||||
unset i
|
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
|
# PINE address-book completion
|
||||||
#
|
#
|
||||||
have pine &&
|
have pine &&
|
||||||
|
17
contrib/cardctl
Normal file
17
contrib/cardctl
Normal 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
|
Loading…
x
Reference in New Issue
Block a user