Created
February 9, 2017 06:42
-
-
Save alexxxdev/fc53c3aaa336bc7d491fa90db3e1d29c to your computer and use it in GitHub Desktop.
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
set PATH $PATH (find ~/.sdkman/candidates/*/current/bin -maxdepth 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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