I set SDKMAN_DIR globally, through environment.d with system. It should not be over-written by sdk.fish.
In my opinion, if both are defined, __sdkman_custom_dir should be preferred.
Labelling this as bug since, as @xtexChooser mentions, the original sdkman-init.shdoes blindly trust and use SDKMAN_DIR. I think that's probably a bad idea, but well.
Re #46:
Labelling this as bug since, as @xtexChooser mentions, the original
sdkman-init.sh
does blindly trust and useSDKMAN_DIR
. I think that's probably a bad idea, but well.