Compare commits

...

2 Commits

Author SHA1 Message Date
David Matheson 5051e6ba41
Merge 88214ad9f7 into 5c17bcd21f 2025-01-08 11:22:36 +01:00
David Matheson 88214ad9f7 feat(sdkman): add basic initialization for sdkman 2024-07-28 13:09:23 -04:00
2 changed files with 22 additions and 0 deletions

14
plugins/sdkman/README.md Normal file
View File

@ -0,0 +1,14 @@
# sdkman
Plugin for SDKMAN, a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems.
Provides initialization for different scenarios where users may have installed.
To use it, add `sdkman` to your plugins array in your zshrc file:
```zsh
plugins=(... sdkman)
```
## Requirements
* [SDKMAN](http://sdkman.io/)

View File

@ -0,0 +1,8 @@
if [[ -z "$SDKMAN_DIR" ]]; then
if [[ -d "$HOME/.sdkman" ]]; then
export SDKMAN_DIR="$HOME/.sdkman"
else
export SDKMAN_DIR="$(brew --prefix sdkman-cli)/libexec" || echo "Cannot find SDKMAN!"
fi
fi
[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh"