Files
oh-my-bash/plugins/sdkman/sdkman.plugin.sh
2022-01-15 19:00:35 +09:00

10 lines
308 B
Bash

#! bash oh-my-bash.module
# Set SDKMAN_DIR if it isn't already defined
[[ ${SDKMAN_DIR-} ]] || export SDKMAN_DIR=~/.sdkman
# Try to load sdk only if the command is not available
if ! _omb_util_command_exists sdk && [[ -s $SDKMAN_DIR/bin/sdkman-init.sh ]]; then
source "$SDKMAN_DIR/bin/sdkman-init.sh"
fi