We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b4822d commit 597cda1Copy full SHA for 597cda1
src/main/bash/sdkman-init.sh
@@ -178,8 +178,11 @@ export PATH
178
# source completion scripts
179
if [[ "$sdkman_auto_complete" == 'true' ]]; then
180
if [[ "$zsh_shell" == 'true' ]]; then
181
- autoload -Uz compinit
182
- compinit
+ # initialize zsh completions (if not already done)
+ if ! (( $+functions[compdef] )) ; then
183
+ autoload -Uz compinit
184
+ compinit
185
+ fi
186
source "${SDKMAN_DIR}/contrib/completion/zsh/sdk"
187
__sdkman_echo_debug "ZSH completion script loaded..."
188
elif [[ "$bash_shell" == 'true' ]]; then
0 commit comments