Open jarmo opened 4 months ago
Having following conditions met:
set-java-home.bash
~/.bashrc
~/.tool-versions
Then opening a new terminal window or moving between directories causes the following annoying message to be shown every time:
No version is set for command java Consider adding one of the following versions in your config file at java temurin-22.0.1+8
This PR hides this message by redirecting stderr of asdf which java command used by set-java-home.bash to /dev/null.
asdf which java
/dev/null
Similar problem probably exists for other supported shells, but since I don't use these then I can't test any changes.
Having following conditions met:
set-java-home.bash
sourced in~/.bashrc
~/.tool-versions
Then opening a new terminal window or moving between directories causes the following annoying message to be shown every time:
This PR hides this message by redirecting stderr of
asdf which java
command used byset-java-home.bash
to/dev/null
.Similar problem probably exists for other supported shells, but since I don't use these then I can't test any changes.