# Switch JDK

jdk_ln=$HOME/.local/opt/jdk

jdk() {
    rm -f "$jdk_ln"
    ln -s "$(/usr/libexec/java_home -v 1.$1)" "$jdk_ln"
}

# Switch JDK

jdk_ln=$HOME/.local/opt/jdk

jdk() {
    rm -f "$jdk_ln"
    ln -s "$(/usr/libexec/java_home -v $1)" "$jdk_ln"
}

Use new Java version scheme for selecting macOS java_home
Use new Java version scheme for selecting macOS java_home
