mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-14 07:44:22 +08:00
Revert "Remove redundant bashcompinit calls"
This reverts commit f776af2a1f.
Fixes #9314
This commit is contained in:
1 parent
fbb2b56c7e
commit
6ebf27b8d3
5 files changed
+10
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user