File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ if [[ -z "${sdkman_curl_retry_max_time}" ]]; then sdkman_curl_retry_max_time=60;
153153# set curl to continue downloading automatically
154154if [[ -z " ${sdkman_curl_continue} " ]]; then sdkman_curl_continue=true; fi
155155
156- # Read list of candidates and set array
156+ # read list of candidates and set array
157157SDKMAN_CANDIDATES_CACHE=" ${SDKMAN_DIR} /var/candidates"
158158SDKMAN_CANDIDATES_CSV=$( < " $SDKMAN_CANDIDATES_CACHE " )
159159__sdkman_echo_debug " Setting candidates csv: $SDKMAN_CANDIDATES_CSV "
@@ -175,6 +175,19 @@ done
175175unset candidate_name candidate_dir
176176export PATH
177177
178+ # source completion scripts
179+ if [[ " $sdkman_auto_complete " == ' true' ]]; then
180+ if [[ " $zsh_shell " == ' true' ]]; then
181+ source " ${SDKMAN_DIR} /contrib/completion/zsh/sdk"
182+ __sdkman_echo_debug " ZSH completion script loaded..."
183+ elif [[ " $bash_shell " == ' true' ]]; then
184+ source " ${SDKMAN_DIR} /contrib/completion/bash/sdk"
185+ __sdkman_echo_debug " Bash completion script loaded..."
186+ else
187+ __sdkman_echo_debug " No completion scripts found for $SHELL "
188+ fi
189+ fi
190+
178191if [[ " $sdkman_auto_env " == " true" ]]; then
179192 if [[ " $zsh_shell " == " true" ]]; then
180193 function sdkman_auto_env() {
You can’t perform that action at this time.
0 commit comments