Skip to content

Instantly share code, notes, and snippets.

@tfield
Forked from EugenMayer/SDKman to JENV
Last active May 11, 2023 06:09
Show Gist options
  • Save tfield/7617edad0ee8087836510ed95ecaf7c6 to your computer and use it in GitHub Desktop.
Save tfield/7617edad0ee8087836510ed95ecaf7c6 to your computer and use it in GitHub Desktop.
#!/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 '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment