Skip to content

Instantly share code, notes, and snippets.

View tfield's full-sized avatar

Tony Field tfield

View GitHub Profile
#!/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 '{}' \;