Skip to content

Instantly share code, notes, and snippets.

@alexxxdev
Created February 9, 2017 06:42
Show Gist options
  • Save alexxxdev/fc53c3aaa336bc7d491fa90db3e1d29c to your computer and use it in GitHub Desktop.
Save alexxxdev/fc53c3aaa336bc7d491fa90db3e1d29c to your computer and use it in GitHub Desktop.
set PATH $PATH (find ~/.sdkman/candidates/*/current/bin -maxdepth 0)
@alexxxdev
Copy link
Author

I wrote a script like this and saved as $HOME/.config/fish/conf.d/sdkman.fish. Seems it works. And it does not depend on bass:

#!/usr/bin/fish

sdk command

function sdk
bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk $argv"
end

add paths

for ITEM in $HOME/.sdkman/candidates/* ;
set -gx PATH $PATH $ITEM/current/bin
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment