This sdkman plugin aims at making sdkman usage easier with completion scripts.
zsh-sdkman is not bundled with ZSH, so you need to install it.
- Add the following to your
.zshrcfile:
antigen bundle matthieusb/zsh-sdkman- Then, reload your terminal or run
zshto load the plugin.
You can also add the plugin to a running ZSH session with antigen bundle matthieusb/zsh-sdkman for testing before adding it to your .zshrc.
- Add the following to your
.zshrcfile:
zgen load matthieusb/zsh-sdkman- Then, reload your terminal or run
zshto load the plugin.
- Move to your
oh-my-zshhome folder, then incustom/pluginsfolder - Clone this repository:
git clone https://github.com/matthieusb/zsh-sdkman.git
- And then, add the plugin to your
.zshrcthis:
plugins=(... zsh-sdkman)
🚨 Cloning of zsh-sdkman requires the Git Large File Storage Git extension.
- sdkman of course
dategrepegrepsedawk
👷 TODO
Sdkman can be used as usual:
SYNOPSIS
sdk <subcommand> [candidate] [version]
candidate : the SDK to install: groovy, scala, grails, gradle, kotlin, etc.
use list command for comprehensive list of candidates
eg: $ sdk list
version : where optional, defaults to latest stable if not provided
eg: $ sdk install groovy
SUBCOMMANDS & QUALIFIERS
help [subcommand]
install <candidate> [version] [path]
uninstall <candidate> <version>
list [candidate]
use <candidate> <version>
config no qualifier
default <candidate> [version]
home <candidate> <version>
env [init|install|clear]
current [candidate]
upgrade [candidate]
version no qualifier
offline [enable|disable]
selfupdate [force]
update no qualifier
flush [tmp|metadata|version]
EXAMPLES
sdk install java 17.0.0-tem
sdk help install
Some aliases are available through this plugin:
alias sdki='sdk install'
alias sdkun='sdk uninstall'
alias list='sdk list'
alias sdku='sdk use'
alias sdkd='sdk default'
alias sdkc='sdk current'
alias sdkup='sdk upgrade'
alias sdkv='sdk version'
alias sdkb='sdk broadcast'
alias sdko='sdk offline'
alias sdksu='sdk selfupdate'
alias sdkf='sdk flush'
