asdf-java/set-java-home.fish

5 lines
100 B
Fish

asdf current java 2>&1 > /dev/null
if test $status -eq 0
set -x JAVA_HOME (asdf where java)
end