Remove redundant bashcompinit calls

Fixes #9246
This commit is contained in:
Marc Cornellà 2020-09-30 19:00:51 +02:00
parent a8828aad87
commit f776af2a1f
5 changed files with 2 additions and 10 deletions

View file

@ -64,7 +64,6 @@ fi
# AWS CLI v2 comes with its own autocompletion. Check if that is there, otherwise fall back # AWS CLI v2 comes with its own autocompletion. Check if that is there, otherwise fall back
if command -v aws_completer &> /dev/null; then if command -v aws_completer &> /dev/null; then
autoload -Uz bashcompinit && bashcompinit
complete -C aws_completer aws complete -C aws_completer aws
else else
function _awscli-homebrew-installed() { function _awscli-homebrew-installed() {

View file

@ -10,11 +10,8 @@ if (( ${+commands[compleat]} )); then
local setup="${prefix}/share/compleat-1.0/compleat_setup" local setup="${prefix}/share/compleat-1.0/compleat_setup"
if [[ -f "$setup" ]]; then if [[ -f "$setup" ]]; then
if ! bashcompinit >/dev/null 2>&1; then
autoload -U bashcompinit
bashcompinit -i
fi
source "$setup" source "$setup"
fi fi
unset prefix setup
fi fi

View file

@ -99,6 +99,4 @@ alias drvg="drush variable-get"
alias drvs="drush variable-set" alias drvs="drush variable-set"
# Enable drush autocomplete support # Enable drush autocomplete support
autoload bashcompinit
bashcompinit
source $(dirname $0)/drush.complete.sh source $(dirname $0)/drush.complete.sh

View file

@ -1,4 +1,3 @@
(( $+commands[stack] )) || return (( $+commands[stack] )) || return
autoload -U +X bashcompinit && bashcompinit
source <(stack --bash-completion-script stack) source <(stack --bash-completion-script stack)

View file

@ -138,7 +138,6 @@ alias wpwm='wp widget move'
alias wpwu='wp widget update' alias wpwu='wp widget update'
autoload -U +X bashcompinit && bashcompinit
# bash completion for the `wp` command # bash completion for the `wp` command
_wp_complete() { _wp_complete() {