doctl.plugin.zsh 411 B

1234567891011121314151617
  1. # Autocompletion for doctl, the command line tool for DigitalOcean service
  2. #
  3. # doctl project: https://github.com/digitalocean/doctl
  4. #
  5. # Author: https://github.com/HalisCz
  6. if (( ! $+commands[doctl] )); then
  7. return
  8. fi
  9. if [[ ! -f "$ZSH_CACHE_DIR/completions/_doctl" ]]; then
  10. typeset -g -A _comps
  11. autoload -Uz _doctl
  12. _comps[doctl]=_doctl
  13. fi
  14. doctl completion zsh >| "$ZSH_CACHE_DIR/completions/_doctl" &|