1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

Revert "Remove redundant bashcompinit calls"

This reverts commit f776af2a1f.

Fixes #9314
This commit is contained in:
Marc Cornellà
2020-10-05 17:20:02 +02:00
parent fbb2b56c7e
commit 6ebf27b8d3
5 changed files with 10 additions and 2 deletions

View File

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