Skip to content

Commit 3ddf84c

Browse files
committed
Make completion command a dummy function.
This is to honour those who have: `source <(sdk completion xxx)` in their profile.
1 parent c6e8c8f commit 3ddf84c

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/main/bash/sdkman-completion.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,7 @@
1717
#
1818

1919
function __sdk_completion() {
20-
local -r shell="$1"
21-
22-
case "$shell" in
23-
bash)
24-
cat "${SDKMAN_DIR}/contrib/completion/bash/sdk"
25-
;;
26-
zsh)
27-
cat "${SDKMAN_DIR}/contrib/completion/zsh/sdk"
28-
;;
29-
*)
30-
__sdkman_echo_red "No shell provided." 1>&2
31-
;;
32-
esac
20+
# dummy function is no longer used
21+
# remains to honour 'source <(sdk completion $SHELL)'
22+
echo ""
3323
}

0 commit comments

Comments
 (0)