We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bash_completion
compinit
1 parent 07253ec commit 117486dCopy full SHA for 117486d
bash_completion
@@ -84,11 +84,14 @@ __nvm() {
84
# called bashcompinit that will create a complete in ZSH. If the user is in
85
# ZSH, load and run bashcompinit before calling the complete function.
86
if [[ -n ${ZSH_VERSION-} ]]; then
87
- # Calling compinit first and then bashcompinit as mentioned by zsh man page.
88
- autoload -U +X compinit && if [[ ${ZSH_DISABLE_COMPFIX-} = true ]]; then
89
- compinit -u
90
- else
91
- compinit
+ # First calling compinit (only if not called yet!)
+ # and then bashcompinit as mentioned by zsh man page.
+ if ! command -v compinit > /dev/null; then
+ autoload -U +X compinit && if [[ ${ZSH_DISABLE_COMPFIX-} = true ]]; then
+ compinit -u
92
+ else
93
+ compinit
94
+ fi
95
fi
96
autoload -U +X bashcompinit && bashcompinit
97
0 commit comments