Skip to content

Commit a3f3356

Browse files
Oliver Weilermarc0der
authored andcommitted
Add instructions to sdk completion output on how to setup Bash completion
1 parent 54e9cd8 commit a3f3356

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/bash/sdkman-completion.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ function __sdkman_completion_bash() {
7070
COMPREPLY=($(compgen -W "${candidates[*]}" -- "$current_word"))
7171
}
7272
73-
complete -o default -F _sdk_completion sdk
73+
complete -o default -F _sdk_completion sdk
74+
75+
# Run the following command to enable Bash completion in the current shell:
76+
# source <(sdk completion bash)
77+
#
78+
# Issue the following command to enable Bash completion permanently:
79+
# echo "source <(sdk completion bash)" >> ~/.bashrc
7480
EOF
7581
}
7682

0 commit comments

Comments
 (0)