make set-java-home.fish export globally

This changes `set-java-home.fish` so it will globally export JAVA_HOME. 
Related to issue #85
This commit is contained in:
Anthony Ou 2020-04-24 19:13:14 -06:00 committed by Scott McLeod
parent 8baa3f7961
commit 723f247f5e

View File

@ -3,6 +3,6 @@ function asdf_update_java_home --on-event fish_prompt
if test -n "$java_path"
set --local full_path (realpath "$java_path")
set --local full_path_dir (dirname "$full_path")
set --export JAVA_HOME (dirname "$full_path_dir")
set -gx JAVA_HOME (dirname "$full_path_dir")
end
end