Closed wnkz closed 3 years ago
Hello, At first I though having a bug with direnv but after debugging in https://github.com/direnv/direnv/issues/726 it appears that additional messages are caused by asdf_update_java_home precmd hook.
asdf_update_java_home
Change was introduced here https://github.com/halcyon/asdf-java/pull/76.
My guess is that the cd -P makes direnv load / unload on every command. Maybe we don't need to update JAVA_HOME before every command ?
cd -P
JAVA_HOME
My suggestions would be:
Hello, At first I though having a bug with direnv but after debugging in https://github.com/direnv/direnv/issues/726 it appears that additional messages are caused by
asdf_update_java_home
precmd hook.Change was introduced here https://github.com/halcyon/asdf-java/pull/76.
My guess is that the
cd -P
makes direnv load / unload on every command. Maybe we don't need to updateJAVA_HOME
before every command ?My suggestions would be:
JAVA_HOME
once at shell init with current globally selected asdf Java versionJAVA_HOME
when version is changed with asdf (Don't really know if this is doable)