Preserve all X_HOME environment variables created by SDKMAN!.

Adresses issue #24.
This commit is contained in:
Raphael Reitzig 2018-11-09 20:18:01 +01:00
parent 9dd152bced
commit 85d10acc47
2 changed files with 10 additions and 3 deletions

View file

@ -41,6 +41,7 @@ function __fish_sdkman_run_in_bash
bash -c "$argv[1];
echo -e \"\$?\" > $pipe;
env | grep -e '^SDKMAN_\|^PATH' >> $pipe;
env | grep -i -E \"^(`echo \${SDKMAN_CANDIDATES_CSV} | sed 's/,/|/g'`)_HOME\" >> $pipe;
echo \"SDKMAN_OFFLINE_MODE=\${SDKMAN_OFFLINE_MODE}\" >> $pipe" # it's not an environment variable!
set bashDump (cat $pipe; rm $pipe)