1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-21 03:41:57 +00:00

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

This commit is contained in:
Andrew Starr-Bochicchio 2022-12-20 14:56:30 -05:00 committed by GitHub
parent 2bc42d223c
commit 9c2d1af8af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" &|