Remaining _init_completion() related changes missed in the first round.
This commit is contained in:
parent
8048917968
commit
59e189e636
@ -43,10 +43,10 @@ complete -F _autoconf autoconf
|
||||
have autoreconf || have autoheader &&
|
||||
_autoreconf()
|
||||
{
|
||||
COMPREPLY=()
|
||||
local cur prev split=false
|
||||
_get_comp_words_by_ref cur prev
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
local split=false
|
||||
_split_longopt && split=true
|
||||
|
||||
case "$prev" in
|
||||
@ -84,10 +84,10 @@ complete -F _autoreconf autoreconf autoheader
|
||||
have autoscan || have autoupdate &&
|
||||
_autoscan()
|
||||
{
|
||||
COMPREPLY=()
|
||||
local cur prev split=false
|
||||
_get_comp_words_by_ref cur prev
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
local split=false
|
||||
_split_longopt && split=true
|
||||
|
||||
case "$prev" in
|
||||
|
@ -39,10 +39,10 @@ complete -F _automake automake automake-1.11
|
||||
have aclocal &&
|
||||
_aclocal()
|
||||
{
|
||||
COMPREPLY=()
|
||||
local cur prev split=false
|
||||
_get_comp_words_by_ref cur prev
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
local split=false
|
||||
_split_longopt && split=true
|
||||
|
||||
case "$prev" in
|
||||
|
@ -7,7 +7,7 @@ _ifupdown()
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
if [ $COMP_CWORD -eq 1 ]; then
|
||||
if [ $cword -eq 1 ]; then
|
||||
_configured_interfaces
|
||||
COMPREPLY=( $(compgen -W '${COMPREPLY[@]}' -- "$cur") )
|
||||
fi
|
||||
|
@ -8,10 +8,8 @@ _mailman_lists()
|
||||
|
||||
_list_lists()
|
||||
{
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
_get_comp_words_by_ref cur
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview \
|
||||
@ -359,8 +357,6 @@ _arch()
|
||||
_init_completion || return
|
||||
|
||||
local split=false
|
||||
_get_comp_words_by_ref cur prev
|
||||
|
||||
_split_longopt && split=true
|
||||
|
||||
case $prev in
|
||||
|
@ -28,7 +28,7 @@ _portinstall()
|
||||
local -a COMPREPLY2
|
||||
|
||||
portsdir=${PORTSDIR:-/usr/ports}/
|
||||
_get_comp_words_by_ref cur prev
|
||||
|
||||
# First try INDEX-5
|
||||
indexfile=$portsdir/INDEX-5
|
||||
# Then INDEX if INDEX-5 does not exist or system is not FreeBSD 5.x
|
||||
|
Loading…
x
Reference in New Issue
Block a user