Hello,
At first I though having a bug with direnv but after debugging in direnv/direnv#726 it appears that additional messages are caused by asdf_update_java_home precmd hook.
Change was introduced here #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 ?
My suggestions would be:
- Set
JAVA_HOME once at shell init with current globally selected asdf Java version
- Update
JAVA_HOME when version is changed with asdf (Don't really know if this is doable)
Hello,
At first I though having a bug with direnv but after debugging in direnv/direnv#726 it appears that additional messages are caused by
asdf_update_java_homeprecmd hook.Change was introduced here #76.
My guess is that the
cd -Pmakes direnv load / unload on every command.Maybe we don't need to update
JAVA_HOMEbefore every command ?My suggestions would be:
JAVA_HOMEonce at shell init with current globally selected asdf Java versionJAVA_HOMEwhen version is changed with asdf (Don't really know if this is doable)