Skip to content

Instantly share code, notes, and snippets.

@fedragon
Last active June 1, 2024 21:38
Show Gist options
  • Save fedragon/cccf6d65dd6e0da1dc2a1200db8412f4 to your computer and use it in GitHub Desktop.
Save fedragon/cccf6d65dd6e0da1dc2a1200db8412f4 to your computer and use it in GitHub Desktop.
How to use SDKMan! with Fish shell
# Install bass (https://github.com/edc/bass) to be able to use bash utilities in Fish
fisher add edc/bass
touch ~/.config/fish/functions/sdk.fish
# paste content in ~/.config/fish/functions/sdk.fish, then save
function sdk
bass source ~/.sdkman/bin/sdkman-init.sh ';' sdk $argv
end
# open new fish shell and enjoy sdkman
sdk ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment