Remove completion from completion script :-)

This commit is contained in:
Marco Vermeulen
2021-05-22 16:14:55 +01:00
parent 1acab1efa1
commit 6b47af3096
2 changed files with 1 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ __sdkman_complete_command() {
case $command in
sdk)
candidates=("install" "uninstall" "list" "use" "completion" "config" "default" "home" "env" "current" "upgrade" "version" "broadcast" "help" "offline" "selfupdate" "update" "flush")
candidates=("install" "uninstall" "list" "use" "config" "default" "home" "env" "current" "upgrade" "version" "broadcast" "help" "offline" "selfupdate" "update" "flush")
;;
current|default|home|uninstall|upgrade|use)
local -r candidate_paths=("${SDKMAN_CANDIDATES_DIR}"/*)
@@ -36,9 +36,6 @@ __sdkman_complete_command() {
candidates+=($candidate)
done < <(curl --silent "${SDKMAN_CANDIDATES_API}/candidates/all")
;;
completion)
candidates=("bash" "zsh")
;;
env)
candidates=("init install clear")
;;

View File

@@ -28,9 +28,6 @@ _sdk() {
flush)
compadd archives broadcast tmp version
;;
completion)
compadd bash zsh
;;
esac
;;
4)