Last active
November 20, 2024 22:46
-
-
Save fedragon/cccf6d65dd6e0da1dc2a1200db8412f4 to your computer and use it in GitHub Desktop.
How to use SDKMan! with Fish shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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