Skip to content

Instantly share code, notes, and snippets.

@fedragon
Last active March 23, 2024 20:38
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • 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