reitzig / sdkman-for-fish

Adds support for SDKMAN! to fish
MIT License
280 stars 13 forks source link

Copy JAVA_HOME over correctly #24

Closed reitzig closed 5 years ago

reitzig commented 5 years ago

Environment variable JAVA_HOME doesn't survive the transition:

— ~ $ echo $JAVA_HOME

— ~ $ bash
rreitzig@raphael-Ubuntu:~$ echo $JAVA_HOME
/home/DHTP/rreitzig/.sdkman/candidates/java/current

Fix that, and check for "bigger" issues.

Probably relates to the hack in #19.

reitzig commented 5 years ago

Function __sdkman_set_candidate_home sets a HOME environment variable for each candidate (see here). Let's copy them all over.