mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	fix(doctl): actually load completions (#11402)
This commit is contained in:
		
							parent
							
								
									2bc42d223c
								
							
						
					
					
						commit
						9c2d1af8af
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user