Skip to content

Does SDKMAN use the binary shim pattern for auto switching? #1200

Answered by helpermethod
MakeCodeFun asked this question in Q&A
Discussion options

You must be logged in to vote

SDKMAN! appends sdkman_auto_env to the PROMPT_COMMAND` env variable which defines a set of functions which is ran before the prompt is displayed.

If the current directory (PWD) is different to the last visited directory ( SDKMAN_OLD_PWD) and the directory contains an .sdkmanrc then sdk env is executed.

zsh supports this natively via the chpwd_functions array.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MakeCodeFun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants