mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 12:09:08 +00:00 
			
		
		
		
	Changes: - Add optional short-code support - Improve completion for github.com URL (`http(s)://*.github.com` only) - Return with non-zero exit code appropriately
		
			
				
	
	
		
			17 lines
		
	
	
		
			369 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			369 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#compdef git-hub-shorten-url
 | 
						|
#autoload
 | 
						|
 | 
						|
#
 | 
						|
# Completes git-hub-shorten-url.
 | 
						|
#
 | 
						|
# Authors:
 | 
						|
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
						|
#
 | 
						|
 | 
						|
local service="$service"
 | 
						|
 | 
						|
zstyle ":completion:*:${service}:*:prefixes" ignored-patterns '^http(|s)://'
 | 
						|
zstyle ":completion:*:${service}:*:hosts" ignored-patterns '^*github.com'
 | 
						|
 | 
						|
_arguments '1::GitHub URL:_urls' '2::code:' && return 0
 |