mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
10 lines
308 B
Bash
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
|