Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save novusnota/7a34776a39831b85955c5477841213c4 to your computer and use it in GitHub Desktop.
Save novusnota/7a34776a39831b85955c5477841213c4 to your computer and use it in GitHub Desktop.
Simplest way of using https://sdkman.io/ under Fish Shell — add the snippet from the file below to your ~/.config/fish/config.fish and call it a day! No more how to use sdkman with fish issues, a simple wrapper is all you need.
# Simplest way of using https://sdkman.io/ under Fish Shell:
# Add the snippet from the file below to your ~/.config/fish/config.fish and call it a day!
# Note: while this trick works, it doesn't give you auto-completion options.
function sdk
bash -c "source '$HOME/.sdkman/bin/sdkman-init.sh'; sdk $argv[2..-1]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment