diff --git a/plugins/sdk/sdk.plugin.zsh b/plugins/sdk/sdk.plugin.zsh index 13876bfd0..e49caaf2f 100644 --- a/plugins/sdk/sdk.plugin.zsh +++ b/plugins/sdk/sdk.plugin.zsh @@ -7,10 +7,10 @@ # sdk offline # # commands: -# install or i [version] +# install or i [version] [local-path] # uninstall or rm # list or ls [candidate] -# use or u [version] +# use or u # default or d [version] # current or c [candidate] # upgrade or ug [candidate] @@ -20,14 +20,15 @@ # offline [enable|disable] # selfupdate [force] # update -# flush +# flush # # 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 +# local-path : optional path to an existing local installation +# eg: $ sdk install groovy 2.4.13-local /opt/groovy-2.4.13 local _sdk_commands=( install i @@ -68,7 +69,7 @@ _sdk () { compadd -- $SDKMAN_CANDIDATES ;; offline) compadd -- enable disable ;; selfupdate) compadd -- force ;; - flush) compadd -- candidates broadcast archives temp ;; + flush) compadd -- broadcast archives temp ;; esac ;; 4) case "$words[2]" in