This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "ensuring that jenv config directories exist" | |
mkdir -p $HOME/.jenv/versions | |
echo "removing current jenv java's to re-add them freshly" | |
jenv versions --bare | xargs -n1 jenv remove | |
echo "adding all sdkmans java versions to jenv" | |
find $HOME/.sdkman/candidates/java -maxdepth 1 -mindepth 1 -type d -exec jenv add '{}' \; |