A fish plugin for sdkman.
When you execute install, uninstall, default, or use commands you can select a version with fzf.
In addition, this plugin supports auto env function. If .sdkmanrc exists on current or parent directory, your java version in current shell process is changed automatically.
fisher install miya10kei/sdkman-fish
write this on your config.fish
set -x JAVA_HOME $HOME/.sdkman/candidates/java/current
for candidate in $HOME/.sdkman/candidates/* ;
addPath $candidate/current/bin
end
If you want to use auto env function.
Please write this on your config.fish.
function sdk_auto_env --on-variable PWD
__sdk_auto_env
end
and write this on your sdkman config.
sdkman_auto_env=false
sdkman_auto_env_fish=true