mirror of
https://github.com/halcyon/asdf-java.git
synced 2024-10-06 07:42:09 +08:00
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:
parent
8baa3f7961
commit
723f247f5e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user