mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			257 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			257 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
if (( ! $+commands[scw] )); then
 | 
						|
  return
 | 
						|
fi
 | 
						|
 | 
						|
_scw () {
 | 
						|
  output=($(scw autocomplete complete zsh -- ${CURRENT} ${words}))
 | 
						|
  opts=('-S' ' ')
 | 
						|
  if [[ $output == *= ]]; then
 | 
						|
    opts=('-S' '')
 | 
						|
  fi
 | 
						|
  compadd "${opts[@]}" -- "${output[@]}"
 | 
						|
}
 | 
						|
 | 
						|
compdef _scw scw
 |