Move _initialize and _conf_read above completion
This commit is contained in:
parent
39fa88375f
commit
0e70a1b471
6
cmd
6
cmd
|
@ -525,6 +525,9 @@ _buffer() {
|
||||||
# --------------------- completion and delegation --------------------
|
# --------------------- completion and delegation --------------------
|
||||||
# `complete -C foo foo` > `source <(foo bloated_completion)`
|
# `complete -C foo foo` > `source <(foo bloated_completion)`
|
||||||
|
|
||||||
|
_config_read
|
||||||
|
_have _initialize && _initialize "$@"
|
||||||
|
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
[[ $line =~ ^declare\ -f\ x\. ]] || continue
|
[[ $line =~ ^declare\ -f\ x\. ]] || continue
|
||||||
COMMANDS+=( "${line##declare -f x.}" )
|
COMMANDS+=( "${line##declare -f x.}" )
|
||||||
|
@ -540,9 +543,6 @@ if [[ -n $COMP_LINE ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_config_read
|
|
||||||
_have _initialize && _initialize "$@"
|
|
||||||
|
|
||||||
for c in "${COMMANDS[@]}"; do
|
for c in "${COMMANDS[@]}"; do
|
||||||
if [[ $c == "$EXE" ]]; then
|
if [[ $c == "$EXE" ]]; then
|
||||||
"x.$EXE" "$@"
|
"x.$EXE" "$@"
|
||||||
|
|
Loading…
Reference in New Issue