doctl.plugin.zsh
411 bytes
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
7if (( ! $+commands[doctl] )); then
8 return
9fi
10
11if [[ ! -f "$ZSH_CACHE_DIR/completions/_doctl" ]]; then
12 typeset -g -A _comps
13 autoload -Uz _doctl
14 _comps[doctl]=_doctl
15fi
16
17doctl completion zsh >| "$ZSH_CACHE_DIR/completions/_doctl" &|