Created
March 22, 2024 19:54
-
-
Save Farid-NL/62038627ff2079c6f94a32a7b26a7cbc to your computer and use it in GitHub Desktop.
Lazy loading for sdkman in zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export SDKMAN_DIR="$HOME/.sdkman" | |
| source ~/your/path/sdkman-lazy.zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sdk() { | |
| unfunction sdk | |
| [[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh" | |
| sdk "$@" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment