Split pineaddr completion to contrib/pine
This commit is contained in:
parent
8c88c2283f
commit
4c9dcbb836
1
CHANGES
1
CHANGES
@ -32,6 +32,7 @@ bash-completion (1.x)
|
|||||||
* 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
|
* Split cardctl completion to contrib/cardctl
|
||||||
|
* Split pineaddr completion to contrib/pine
|
||||||
|
|
||||||
[ Ville Skyttä ]
|
[ Ville Skyttä ]
|
||||||
* Split yum and yum-arch completion into contrib/yum.
|
* Split yum and yum-arch completion into contrib/yum.
|
||||||
|
@ -87,6 +87,7 @@ bashcomp_DATA = contrib/ant \
|
|||||||
contrib/openssl \
|
contrib/openssl \
|
||||||
contrib/p4 \
|
contrib/p4 \
|
||||||
contrib/perl \
|
contrib/perl \
|
||||||
|
contrib/pine \
|
||||||
contrib/pkg-config \
|
contrib/pkg-config \
|
||||||
contrib/postgresql \
|
contrib/postgresql \
|
||||||
contrib/postfix \
|
contrib/postfix \
|
||||||
|
@ -1443,21 +1443,6 @@ for i in env netstat seq uname units wget; do
|
|||||||
done
|
done
|
||||||
unset i
|
unset i
|
||||||
|
|
||||||
# PINE address-book completion
|
|
||||||
#
|
|
||||||
have pine &&
|
|
||||||
_pineaddr()
|
|
||||||
{
|
|
||||||
local cur
|
|
||||||
|
|
||||||
COMPREPLY=()
|
|
||||||
cur=`_get_cword`
|
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook 2>/dev/null)' \
|
|
||||||
-- $cur ) )
|
|
||||||
} &&
|
|
||||||
complete -F _pineaddr $default pine
|
|
||||||
|
|
||||||
_configure_func()
|
_configure_func()
|
||||||
{
|
{
|
||||||
local cur
|
local cur
|
||||||
|
14
contrib/pine
Normal file
14
contrib/pine
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# PINE address-book completion
|
||||||
|
#
|
||||||
|
have pine &&
|
||||||
|
_pineaddr()
|
||||||
|
{
|
||||||
|
local cur
|
||||||
|
|
||||||
|
COMPREPLY=()
|
||||||
|
cur=`_get_cword`
|
||||||
|
|
||||||
|
COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook 2>/dev/null)' \
|
||||||
|
-- $cur ) )
|
||||||
|
} &&
|
||||||
|
complete -F _pineaddr $default pine
|
Loading…
x
Reference in New Issue
Block a user