reitzig / sdkman-for-fish

Adds support for SDKMAN! to fish
MIT License
280 stars 13 forks source link

Do not complete sdk unless it is installed #6

Closed reitzig closed 5 years ago

reitzig commented 5 years ago

I don't have SDKMAN! installed yet, but I still see:

> sdk <TAB>
b          (Display broadcast message)  h       (Display help message)  rm         (Uninstall version)
broadcast  (Display broadcast message)  help    (Display help message)  selfupdate     (Update sdkman)
c            (Display current version)  i        (Install new version)  u       (Use specific version)
current      (Display current version)  install  (Install new version)  uninstall  (Uninstall version)
…and 3 more rows

Instead, sdk should be shown as red (as other unavailable commands). There should be no auto-completion on its parameters.