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.
 
 

20 lines
447 B

#!/usr/bin/env bash
set -e
[ -n "$JENV_DEBUG" ] && set -x
# Provide jenv completions
if [ "$1" = "--complete" ]; then
exec jenv-rehash --complete
fi
# When jenv shell integration is enabled, delegate to jenv-rehash,
# then tell the shell to empty its command lookup cache.
jenv-rehash "$@"
# Check if the shell is fish
if [[ "$SHELL" == *"fish"* ]] || [[ "$shell" == *"fish"* ]]; then
# no rehash support
:
else
echo "hash -r"
fi