Unverified Commit 9c2d1af8 authored by Andrew Starr-Bochicchio's avatar Andrew Starr-Bochicchio Committed by GitHub

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

parent 2bc42d22
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
# #
# Author: https://github.com/HalisCz # Author: https://github.com/HalisCz
if [ $commands[doctl] ]; then if (( ! $+commands[doctl] )); then
source <(doctl completion zsh) return
fi 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" &|
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment