Manage your Java environment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
311 B

#!/usr/bin/env bash
# Summary: Show the current Java version and its origin
#
# Shows the currently selected Java version and how it was
# selected. To obtain only the version string, use `jenv
# version-name'.
set -e
[ -n "$JENV_DEBUG" ] && set -x
echo "$(jenv-version-name) (set by $(jenv-version-origin))"