fix(doctl): actually load completions (#11402)

master
Andrew Starr-Bochicchio 4 years ago committed by GitHub
parent 2bc42d223c
commit 9c2d1af8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      plugins/doctl/doctl.plugin.zsh

@ -4,6 +4,14 @@
#
# Author: https://github.com/HalisCz
if [ $commands[doctl] ]; then
source <(doctl completion zsh)
if (( ! $+commands[doctl] )); then
return
fi
if [[ ! -f "$ZSH_CACHE_DIR/completions/_doctl" ]]; then
typeset -g -A _comps
autoload -Uz _doctl
_comps[doctl]=_doctl
fi
doctl completion zsh >| "$ZSH_CACHE_DIR/completions/_doctl" &|

Loading…
Cancel
Save