- fishでSDKMANのPATHが通らない問題

参照: https://github.com/sdkman/sdkman-cli/issues/294#issuecomment-318252058

これを $HOME/.config/fish/conf.d/sdkman.fish に置く。

#!/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

33 Words

2019-10-10 02:31:43