mirror of
https://github.com/halcyon/asdf-java.git
synced 2024-10-06 15:52:10 +08:00
11 lines
318 B
Plaintext
11 lines
318 B
Plaintext
![]() |
def asdf_update_java_home [] {
|
||
|
let $java_path = (asdf which java)
|
||
|
|
||
|
if $java_path {
|
||
|
let $full_path = (realpath $java_path | lines | nth 0 | str trim)
|
||
|
|
||
|
let $java_home = ($full_path | path dirname | path dirname)
|
||
|
let-env JAVA_HOME = $java_home
|
||
|
let-env JDK_HOME = $java_home
|
||
|
}
|
||
|
}
|